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. - Sidebar
Item - A selectable item: a display
labeland an opaqueidthe caller uses to map the selection back to its own data. - Sidebar
Section - A named group of items. An empty
titlerenders no header row.
Enums§
- Overflow
- How labels wider than the column are handled.
- Sidebar
Outcome - What a key press meant to the caller.