Element representing a drow-down menu.
Properties:
| Name | Type | Description |
|---|---|---|
menuOpened |
bool | [readonly] Whether the menu is currently opened. |
reservedHeight |
number | (default: |
Extends
Methods
-
Shows the menu next to a parent element.
The menu is shown below or above the given parent element, depending on the screen space. If
{ horizontal: true }is passed for options, the menu is instead shown right or left to the parent element.If
nullis passed for the parent element, the menu is positioned near the mouse pointer.Name Type Default Description parenthtml.Item The parent element, or
null.optionsobject { } optional A dictionary of options.