AnyLumino
API referencelayout

MenuBar

Lumino-style menu bar with nested menu items and Python callbacks.

Functions

constructor__init__(menus=None, *, callbacks=None, width='100%', height='auto') -> None
parammenusIterable[dict[str, Any]] | None
= None

Menu definitions. A menu normally has a label and an items sequence. Item dictionaries should include an id and label and may include frontend options such as icon, icon_src, icon_size, disabled, or separator. icon uses bundled workflow icon names.

paramcallbacksdict[str, ActionCallback] | None
= None

Callback map keyed by menu item id. A callback receives the activated item id. The map stays available as the callbacks attribute, and on_click or on_action register callbacks for every activation.

paramwidthint | float | str | None
= '100%'

Widget width.

paramheightint | float | str | None
= 'auto'

Widget height.

Returns

None

On this page