BlockActionMenuSettings

16 Dec 20251 minute to read

Represents BlockActionMenuSettings in the block editor component.

Properties

enable boolean

Specifies whether the block actions menu is enabled.
If set to false, the menu will not be displayed.

Defaults to true

enableTooltip boolean

Specifies whether the tooltip is enabled for the block action menu.
If set to true, tooltips will be displayed based on the tooltip property of the action item.

Defaults to true

items BlockActionItemModel[]

Specifies the action items in the block actions menu.
This defines the set of commands that appear when the menu is opened.

Defaults to []

popupHeight string

Specifies the popup height for the action menu.

Defaults to ‘auto’

popupWidth string

Specifies the popup width for the action menu.

Defaults to ‘230px’

Events

closing EmitType<BlockActionMenuClosingEventArgs>

Specifies the event triggered when the block actions menu closes.

itemSelect EmitType<BlockActionItemSelectEventArgs>

Specifies the event triggered when an item is being selected from the menu.

opening EmitType<BlockActionMenuOpeningEventArgs>

Specifies the event triggered when the block actions menu opens.