Expand description
Tree list view widget for ratatui with filtering, marking, and optional key/edit handling.
Feature flags:
keymap: crossterm-based key bindings andTreeListViewState::handle_key*helpers.edit:TreeEdittrait and edit-action helpers.serde: serde support forTreeListViewSnapshot.
Modules§
Structs§
- Adaptive
Columns - Adaptive layout that fits columns into the available area.
- Column
Def - Column definition: header label, width constraint, and cell renderer.
- Column
Width - Width constraints for a column in adaptive layout.
- NoFilter
- Filter that matches every node.
- Simple
Columns - Fixed-width column layout with optional header.
- Tree
Columns Layout - Simple container for a label constraint and a fixed set of other constraints.
- Tree
Glyphs - Glyph set used to render the tree structure and expanders.
- Tree
Label Prefix - Label parts: name with an optional prefix (e.g., marker or icon).
- Tree
List View - Main tree list view widget (table + stateful).
- Tree
List View Snapshot - Snapshot of state (selection, expansion, marks).
- Tree
List View State - Widget state: expanded nodes, selection, and visibility/mark caches.
- Tree
List View Style - Visual settings for the tree list view widget.
- Tree
RowContext - Rendering context for a single tree row.
- Tree
RowNode State - Node-specific flags used while rendering a row.
- Tree
RowRender State - Rendering flags that affect visual presentation.
Enums§
- Tree
Action - Actions that a user or application can initiate on the tree view.
- Tree
Event - Result of handling an action or key event.
- Tree
Filter Config - Configuration for filtered rendering.
- Tree
Scroll Policy - Scroll policy used to keep the selection visible.
Traits§
- Tree
Columns - Column layout and cell rendering for tree rows.
- Tree
Filter - Visibility filter for nodes (used to build a reduced list).
- Tree
Label Provider - Provides label parts for a node.
- Tree
Label Renderer - Renders a node into a
Cellfor the label column. - Tree
Model - Minimal tree contract required by the widget.
Functions§
- distribute_
widths - Distributes
totalwidth across columns respectingmin/ideal/max. - tree_
label_ line - Builds a
Linefor the tree label, including guides and expanders. - tree_
name_ cell - Convenience wrapper to build a label
Cellfrom the labelLine.
Type Aliases§
- Column
Fn - Function pointer type for rendering a single column cell.