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
null
is passed for the parent element, the menu is positioned near the mouse pointer.Name Type Default Description parent
html.Item The parent element, or
null
.options
object { } optional A dictionary of options.