Class: Menu

ui.Menu

Element representing a drow-down menu.

Properties:
Name Type Description
menuOpened bool

[readonly] Whether the menu is currently opened.

reservedHeight number

(default: 6) The minimum height reserved for this menu. Use when you want to create menu items dynamically on scrolling.

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.

Events

cascadingClose

Is triggered when the menu cascade (this menu and all its submenus) is closing.