MenuListOptions
Defined in: components/menu.ts:127
Options for menu.
Properties
Section titled “Properties”items:
MenuEntry[]
Defined in: components/menu.ts:132
The entries: items, separators, custom slots — and collapsible branches, via MenuItem.items.
onLeafSelect?
Section titled “onLeafSelect?”
optionalonLeafSelect?: () =>void
Defined in: components/menu.ts:138
Run when a leaf item is activated. A branch expanding is not a selection, so it doesn’t run this — which is what lets a menu that dismisses itself on selection stay up while a section unfolds.
Returns
Section titled “Returns”void
attrs?
Section titled “attrs?”
optionalattrs?:string
Defined in: components/menu.ts:140
Aberdeen attr/style string on the list element.