Skip to main content

Module collapsing_header

Module collapsing_header 

Source
Expand description

CollapsingHeader — a clickable header that shows/hides child content.

§Composition

CollapsingHeader
  ├── Label  (children[0]: header text, framework-painted)
  └── child  (children[1]: shown when expanded, swapped out when collapsed)

The triangle indicator is drawn as a path. Clicking anywhere on the header row toggles the collapsed/expanded state.

Structs§

CollapsingHeader
A collapsible section header. When expanded, the child widget is visible below the header row. When collapsed, only the header row is shown.