Skip to content

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): void

Parameters:

ParameterTypeDescription
elNodeThe element within the item to select.
immediate?boolean | undefinedWhether to open the submenu immediately rather than after a delay.

Returns: void