Menu.selectElement method
Menu › selectElement
Unofficial
Selects the menu item containing the given element, optionally opening its submenu immediately.Signature:
selectElement(el: Node, immediate?: boolean | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| el | Node | The element within the item to select. |
| immediate? | boolean | undefined | Whether to open the submenu immediately rather than after a delay. |
Returns: void