blockly > BlockSvg > generateContextMenu

BlockSvg.generateContextMenu() method

Generate the context menu for this block.

Signature:

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

Returns:

Array<ContextMenuOption | LegacyContextMenuOption> | null

Context menu options or null if no menu.