sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Interface CustomVisualizationEventProps Beta<DataPoint>

Defines event handler props for a custom visualization component.

Included automatically via CustomVisualizationProps. Extend to add custom event props.

Example

interface MyEventProps extends CustomVisualizationEventProps<MyDataPoint> {
  onCustomAction?: (id: string) => void;
}

Type parameters

ParameterDefaultDescription
DataPoint extends AbstractDataPointWithEntriesAbstractDataPointWithEntriesThe shape of data points for this custom visualization.

Properties

Callbacks

onDataPointClick

onDataPointClick?: CustomVisualizationDataPointEventHandler< DataPoint >

Click handler callback for a data point


onDataPointContextMenu

onDataPointContextMenu?: CustomVisualizationDataPointContextMenuHandler< DataPoint >

Context menu handler callback for a data point


onDataPointsSelected

onDataPointsSelected?: CustomVisualizationDataPointsEventHandler< DataPoint >

Handler callback for selection of multiple data points

Last Updated: