✅ You are viewing documentation for the latest version of Compose SDK.
Version:
# Type alias CustomWidgetDataPointEventHandler<T>
CustomWidgetDataPointEventHandler: <
T> (point,nativeEvent) =>void
Generic event handler for custom widget data point click.
# Example
const handleClick: CustomWidgetDataPointEventHandler<MyDataPoint> = (point, event) => {
console.log('Clicked:', point.label, point.value);
};
# Type parameters
| Parameter | Default | Description |
|---|---|---|
T extends AbstractDataPointWithEntries | AbstractDataPointWithEntries | The shape of the data point |
# Parameters
| Parameter | Type |
|---|---|
point | CustomWidgetDataPoint< T > |
nativeEvent | MouseEvent | PointerEvent |
# Returns
void