A class responsible for rendering a menu drop-down.
The default title.
The configured menu items.
Optionaloptions: { cssClass?: string; icon?: string; onAction?: (arg0: MouseEvent) => any } = {}OptionalcssClass?: stringThe menu CSS class name. Required if providing an action.
Optionalicon?: stringUse an icon for the dropdown rather than a text label.
OptionalonAction?: (arg0: MouseEvent) => anyA callback to fire when a menu item is clicked.
Attach event listeners.
The root menu element.
Recurse through the menu structure and apply a function to each item in it.
The function to call on each item. Return false to prevent iterating over any further items.
Construct the drop-down menu's HTML.
HTML contents as a string.
Protected#onProtectedHandle spawning a drop-down menu.
The triggering event.
Protected Static_renderProtectedRender a list of drop-down menu items.
The menu items.
HTML contents as a string.
Protected Static_renderProtectedRender an individual drop-down menu item.
The menu item.
HTML contents as a string.
A class responsible for creating a drop-down.