Details (Collapsible Sections)¶
Description¶
A rows/cols section or a grid item's item: board can be made collapsible by adding a details property. This renders a clickable summary bar with a disclosure triangle (▶/▼) that expands or collapses the content. Works like HTML <details>/<summary>.
The expanded/collapsed state is controlled by an auto-generated hidden variable and toggled via URL parameters; no JavaScript required.
Configuration¶
Add details to a section within a layout. Tab items, grid item wrappers and bare chart references reject it:
rows: - details: summary: "Show More" # Summary text (clickable header) expanded_title: "Hide" # Optional: different text when expanded expanded: true # Optional: start open (default: false) id: breakdown # Optional: URL param name (auto-generated if omitted) rows: # Content (any layout type) - text: Breakdown - text: Detail
Item Options¶
| Field | Type | Default | Description |
|---|---|---|---|
details.summary |
string | (required) | Summary text shown in the clickable header |
details.expanded_title |
string | same as details.summary |
Different text shown when expanded |
details.expanded |
boolean | false |
Whether the section starts expanded |
id |
string | auto-generated | URL parameter name for the toggle variable |
Behavior¶
- Collapsed: Only the summary bar is rendered (36px). Content is not rendered at all.
- Expanded: Summary bar + full content below it.
- Toggle: Clicking the summary bar navigates to a URL that flips the variable, triggering a server re-render.
- URL state: The toggle variable appears in the URL as
?breakdown=trueor?breakdown=false, preserving all other parameters. - Sizing: Height adjusts automatically; collapsed sections take minimal space.
Example¶
title: "Sales Dashboard" rows: - text: Summary - details: summary: "Revenue Breakdown" expanded_title: "Hide Breakdown" rows: - text: By region - text: By product - details: summary: "Raw Data" expanded: true id: raw_data rows: - text: Raw data
This renders: