AIAssitantToolbarClickEventArgs
16 Dec 20251 minute to read
Interface defining the arguments for toolbar item click events in the AI Assistant Popup.
Used to handle and control click events on custom toolbar items across header, prompt, and
response toolbars. Allows for rendering custom toolbar elements such as button dropdowns and inputs.
Properties
cancel boolean
Specifies whether the click event should be cancelled.
Determines if the default action associated with the click event should be prevented.
dataIndex number
Specifies the index of the message data associated with the toolbar item click event.
This property is not applicable for header toolbar item click.
item IAIAssistantToolbarItem
Specifies the AI Assistant toolbar item that was clicked.
Represents the model of the toolbar item that triggered the click event.
originalEvent Event
Specifies the event object associated with the toolbar item click.
Represents the underlying event that triggered the click action, providing details about the event.
requestType AssistantToolbarType
Specifies the toolbar section where the click event occurred.
Identifies which of the three toolbars (Header, Prompt, or Response) contained the clicked item.