Skip to main content

Home > blockly > BlockSvg > generateContextMenu

BlockSvg.generateContextMenu() method

Generate the context menu for this block.

Signature:

protected generateContextMenu(e: Event): Array<ContextMenuOption | LegacyContextMenuOption> | null;

Parameters

ParameterTypeDescription
eEvent

Returns:

Array<ContextMenuOption | LegacyContextMenuOption> | null

Context menu options or null if no menu.