IAIAssistantToolbarItem

16 Dec 20251 minute to read

Extends the standard toolbar settings with additional properties specific to
the AI Assistant functionality.

Properties

align ItemAlign

Specifies the alignment of the toolbar item.

command string

Specifies the primary command to execute when toolbar actions are triggered.

cssClass string

Specifies the CSS class for styling the toolbar item.
Represents the additional CSS classes applied to the toolbar item.

disabled boolean

Specifies whether the toolbar item is disabled.
Indicates if the toolbar item is interactive or not.

iconCss string

Specifies the CSS class for the icon of the toolbar item.
Represents the icon displayed for the toolbar item.

subCommand string

Specifies the secondary or sub-command to execute when toolbar actions are triggered.

tabIndex number

Specifies the tab order of the toolbar items.
When assigned positive values, it allows switching focus to the next/previous toolbar items using the Tab/Shift+Tab keys.
If the value is set to 0 for all toolbar items, the tab order switches based on the element’s order in the DOM.

template string|Function

Specifies the template that defines the appearance of the toolbar item.
Represents the custom template for rendering the toolbar item, which can be a string or a function.

text string

Specifies the text of the toolbar item.
Represents the display text of the toolbar item.

tooltip string

Specifies the tooltip text for the toolbar item.
Represents the text shown when hovering over the toolbar item.

type ItemType

Specifies the type of the toolbar item.
Represents the item type of the toolbar item.

visible boolean

Specifies whether the toolbar item is visible.
Indicates if the toolbar item should be displayed.