public interface SeriesCheckboxClickEventHandler
chart.setSeriesPlotOptions(new SeriesPlotOptions()
.setSeriesCheckboxClickEventHandler(new SeriesCheckboxClickEventHandler() {
public boolean onClick(SeriesCheckboxClickEvent clickEvent) {
Window.alert("User clicked the checkbox state of the series: " + clickEvent.getSeriesName());
return true;
}
)
});
See the documentation on the ChartClickEvent class for more details on the data
available when a checkbox click event occurs.| Modifier and Type | Method and Description |
|---|---|
boolean |
onClick(SeriesCheckboxClickEvent seriesCheckboxClickEvent)
This method is fired whenever a checkbox click event occurs on a series.
|
boolean onClick(SeriesCheckboxClickEvent seriesCheckboxClickEvent)
SeriesCheckboxClickEvent class for more details on the data available when this event is fired.
Return false to prevent the default action which is to toggle the select state of the series.seriesCheckboxClickEvent - The details of the event that occurred.Copyright © 2015. All Rights Reserved.