ToolbarClickEvent
Defines the event arguments triggered by toolbar click actions in the Data Grid component. Includes details about the clicked item, the originating event, and support for preventing default behavior. Used to process user interactions with toolbar commands and apply custom logic before execution.
Props
The following table outlines the props for the ToolbarClickEvent:
| Name | Type | Default | Description |
|---|---|---|---|
| cancel | boolean | - | Indicates whether the default toolbar action should be cancelled. When props.cancel is set to true, the associated command is immediately prevented from executing. |
| event | Event | null | Contains the original browser event that triggered the toolbar click. Provides access to native event properties, such as mouse coordinates or event type, for advanced handling. Useful for custom event processing or interaction with the DOM. |
| item | null | Represents the toolbar item that was clicked, containing its unique identifier and display text. Provides details about the specific toolbar button or control that triggered the event. Enables identification and processing of the clicked item’s properties. |