Skip to content

MenuListOptions

Defined in: components/menu.ts:127

Options for menu.

items: MenuEntry[]

Defined in: components/menu.ts:132

The entries: items, separators, custom slots — and collapsible branches, via MenuItem.items.


optional onLeafSelect?: () => 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.

void


optional attrs?: string

Defined in: components/menu.ts:140

Aberdeen attr/style string on the list element.