A class responsible for rendering a menu drop-down.
The default title.
The configured menu items.
Optionaloptions: {OptionalcssClass?: stringThe menu CSS class name. Required if providing an action.
Optionalicon?: stringUse an icon for the dropdown rather than a text label.
Optionalmenu?: stringAn associated menu that this item collapses under.
OptionalonAction?: (arg0: MouseEvent) => anyA callback to fire when a menu item is clicked.
Optionalweight?: numberThe relative importance of an entry. Entries with lower weight collapse first.
An associated menu that this item collapses under.
The relative importance of this entry.
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_ProtectedRender a list of drop-down menu items.
The menu items.
HTML contents as a string.
Protected Static_ProtectedRender an individual drop-down menu item.
The menu item.
HTML contents as a string.
A class responsible for creating a drop-down.