blockly > ContextMenu > show
ContextMenu.show() function
Construct the menu based on the list of options and show the menu.
Signature:
export declare function show(e: PointerEvent, options: (ContextMenuOption | LegacyContextMenuOption)[], rtl: boolean): void;
Parameters
Parameter | Type | Description |
---|---|---|
e | PointerEvent | Mouse event. |
options | (ContextMenuOption | LegacyContextMenuOption)[] | Array of menu options. |
rtl | boolean | True if RTL, false if LTR. |
Returns:
void