/ Blockeditor / CommandItemModel
Search results

CommandItemModel API in JavaScript (ES5) Blockeditor API control

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.

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

BlockType

Specifies the type of the command item.