Search results

CommandItemClickedEventArgs API in React Blockeditor API component

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

Specifies the command item that was clicked.

element

HTMLElement

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).