blockly > WorkspaceSvg > configureContextMenu

WorkspaceSvg.configureContextMenu property

Developers may define this function to add custom menu options to the workspace's context menu or edit the workspace-created set of menu options.

Signature:

configureContextMenu: ((menuOptions: ContextMenuOption[], e: Event) => void) | null;