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

# Type alias CustomWidgetDataPointsEventHandler<T>

CustomWidgetDataPointsEventHandler: <T> (points, nativeEvent) => void

Generic event handler for custom widget data points selection.

# Example

const handleSelect: CustomWidgetDataPointsEventHandler<MyDataPoint> = (points, event) => {
  console.log('Selected:', points.length, 'points');
};

# Type parameters

Parameter Default Description
T extends AbstractDataPointWithEntries AbstractDataPointWithEntries The shape of the data point

# Parameters

Parameter Type
points CustomWidgetDataPoint< T >[]
nativeEvent MouseEvent

# Returns

void