Interface ResultHighchart.TriggerEvent
- Enclosing class:
ResultHighchart
public static interface ResultHighchart.TriggerEvent
An event that the chart triggers when the user clicks a point. Get it from
ResultHighchart.OnPointClick.triggerEvent(String).
Each with... method adds one attribute of the clicked point to the payload of the event.
- Since:
- 3.7.1 - Bramble
-
Method Summary
Modifier and TypeMethodDescriptionback()Returns to the click definition of the chart.default ResultHighchart.TriggerEventShort forwithCustomEventDataAttr("category")withCustomEventDataAttr(String customAttribute) Pick one or more attributes of the Highchart data Point that should be included in the triggered event's payload.default ResultHighchart.TriggerEventShort forwithCustomEventDataAttr("name")default ResultHighchart.TriggerEventShort forwithCustomEventDataAttr("x")default ResultHighchart.TriggerEventShort forwithCustomEventDataAttr("y")
-
Method Details
-
withXAsEventDataAttr
Short forwithCustomEventDataAttr("x")- Returns:
- the
ResultHighchart.TriggerEventinstance, for convenience
-
withYAsEventDataAttr
Short forwithCustomEventDataAttr("y")- Returns:
- the
ResultHighchart.TriggerEventinstance, for convenience
-
withNameAsEventDataAttr
Short forwithCustomEventDataAttr("name")- Returns:
- the
ResultHighchart.TriggerEventinstance, for convenience
-
withCategoryAsEventDataAttr
Short forwithCustomEventDataAttr("category")- Returns:
- the
ResultHighchart.TriggerEventinstance, for convenience
-
withCustomEventDataAttr
Pick one or more attributes of the Highchart data Point that should be included in the triggered event's payload. The attribute can then be mapped to a Dashboard Input Parameter (seeResultHighchart.onPointClick()for sample code).- Parameters:
customAttribute- the name of an attribute of the Highcharts point, for example"value"- Returns:
- the
ResultHighchart.TriggerEventinstance, for convenience - Throws:
IllegalArgumentException- ifcustomAttributeisnullor empty
-
back
ResultHighchart.OnPointClick back()Returns to the click definition of the chart.- Returns:
- the
ResultHighchart.OnPointClickinstance, for convenience
-