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: Event, options: (ContextMenuOption | LegacyContextMenuOption)[], rtl: boolean): void;
Parameters
Parameter | Type | Description |
---|---|---|
e | Event | Mouse event. |
options | (ContextMenuOption | LegacyContextMenuOption)[] | Array of menu options. |
rtl | boolean | True if RTL, false if LTR. |
Returns:
void