CommandItemModel

23 Sep 20251 minute to read

Interface for a class CommandItem

Properties

disabled boolean

Specifies whether the command item is disabled.
When set to true, the command item will be unavailable for selection and execution.

groupHeader string

Specifies the header text for the command item.
This provides a descriptive title or label for the item group.

iconCss string

Specifies the CSS classes for the icon associated with the item.
This allows for styling and representation of icons that are visually linked with the item.

id string

Specifies the unique identifier of the command item.
This ID can be used for referencing specific commands programmatically.

label string

Specifies the display label for the command item.
This text is shown in the command menu for the user to identify the command.

shortcut string

Specifies the keyboard shortcut for the command item.
This allows users to trigger the command using a specific key combination.

tooltip string

Specifies the title of the item.
This serves as the primary label or heading, providing a brief description of the item’s purpose.

type string|BlockType

Specifies the type of the command item.