Type alias CustomVisualizationDataPointContextMenuHandler Beta<T>
CustomVisualizationDataPointContextMenuHandler: <
T> (point,nativeEvent) =>void
Defines an event handler for a data point context-menu event in a custom visualization.
Example
const handleContextMenu: CustomVisualizationDataPointContextMenuHandler<MyChartDataPoint> = (
point,
event,
) => {
event.preventDefault();
showContextMenu({ x: event.clientX, y: event.clientY, point });
};
Type parameters
| Parameter | Default | Description |
|---|---|---|
T extends AbstractDataPointWithEntries | AbstractDataPointWithEntries | The shape of the data point. |
Parameters
| Parameter | Type |
|---|---|
point | CustomVisualizationDataPoint< T > |
nativeEvent | MouseEvent |
Returns
void