Skip to main content

Module sidebar

Module sidebar 

Source
Expand description

A sidebar: a sectioned, keyboard-navigable menu column.

Sections carry an optional title (a dim, non-selectable header) and a list of selectable items. The sidebar owns the cursor, the vertical/horizontal scroll offsets and an optional / fuzzy filter; the caller reads back the selected item’s id to drive its own view. Labels wider than the column are either clipped with (Overflow::Truncate) or kept and panned horizontally with a scrollbar (Overflow::Scroll).

Structs§

Sidebar
A sectioned menu column over owned SidebarSections.
SidebarItem
A selectable item: a display label and an opaque id the caller uses to map the selection back to its own data.
SidebarSection
A named group of items. An empty title renders no header row.

Enums§

Overflow
How labels wider than the column are handled.
SidebarOutcome
What a key press meant to the caller.