AbstractUndefined for a menu outside the layout, whose items keep their own directions
The slot the layout put this menu in
ProtectedaddKeeps item with the menu's items and inserts its element: next to before/after when that item is
rendered, else at the end of its zone; in place of the item it replaces with replace.
A key already taken is refused (logged) unless replace is set.
Optionaloptions: TMenuItemOptionsProtectedbarThe class laying the bar out along orientation
ProtectedbarWhere a dropdown opening from the bar goes: towards openTowards, growing away from the slot's side
ProtectedcolumnWhere a sub-menu opening from a dropdown's column goes: sideways, towards the inside of the canvas
ProtectedcreateBuilds a dropdown: trigger toggles content, a pointerdown anywhere outside closes it.
the dropdown element to insert, and the element holding content
Protected AbstractcreateBuilds the container of zone and inserts it in wrapper
ProtectedcurrentThe wrapper items go to. A new wrapper is a new render: the zones and items of the previous one belong to the old wrapper, so they are forgotten (not destroyed: they stay where that render put them).
ProtectedgetProtectedinsertInserts an item's element in its zone; a menu overrides it to keep its own elements in place
ProtectedinsertInserts element before or after the item options names; false when there is none to name or render
Optionaloptions: TMenuItemOptionsProtecteditemAbstractrenderAdds the items registered through IIMenuManager.addItem, after the menu's own: called once it rendered. A factory that throws is logged and skipped, the other items still render.
ProtectedsetAlone in its slot, the menu just turns invisible and keeps its room. Sharing it, its host folds away (animated in CSS) so the other occupants close the gap instead of leaving a hole.
ProtectedsharesWhether another occupant shares this menu's slot
ProtectedsubAbstract ReadonlydefaultWhere an item goes when addItem names no zone
Protected OptionaldocumentCloses the dropdown on a pointerdown outside it; set by createDropdown
ProtecteditemsThe rendered items, by key: updated and destroyed with the menu
Optional ReadonlylayoutThe name the layout places this menu by (configuration.layout); none for a menu outside the layout
ProtectedloggerOptionalwrapperProtectedzonesThe containers of the zones built so far
Protected Optionalzones
Remarks
Every member is protected or public, never private: menus are replaced through
options.override.menu. A zone is built on its first item, so a menu shows no empty row nor an empty dropdown.