Search results

CommandItemClickedEventArgs API in JavaScript (ES5) Blockeditor API control

This event is triggered when a command item is clicked in the command menu.

Properties

cancel

boolean

Specifies whether the event should be canceled. true to prevent the default click action.

command

CommandItemModel | null

Specifies the command item that was clicked.

element

HTMLElement | null

Specifies the HTML element associated with the clicked command item.

event

Event

Specifies the native browser event associated with the command item click.

isInteracted

boolean

Specifies whether the click was made by the user (true) or programmatically (false).