Raxol.Core.Renderer.Views.Table (Raxol v2.0.1)
View SourceTable view component for displaying tabular data.
Features:
- Column headers
- Row striping
- Column alignment
- Border styles
- Column resizing
- Row selection
Summary
Functions
Builds the table content without wrapping it in a border or box. This is used by the layout system to get the raw children.
Handles dispatched events.
Initializes the Table component with props. Props are expected to be a map.
Called when the component is mounted.
Constructs a Table struct for view usage (not stateful component usage). Accepts a map of props and returns the struct directly (not a tuple).
Renders the Table component based on its current state.
Renders the table content, potentially with a border.
Called when the component is about to be unmounted.
Handles updates to the component state.
Types
@type props() :: %{ columns: [column()], data: [map()], border: Raxol.Core.Renderer.View.Types.border_style(), striped: boolean(), selectable: boolean(), selected: non_neg_integer() | nil, header_style: Raxol.Core.Renderer.View.Types.style(), row_style: Raxol.Core.Renderer.View.Types.style() }
Functions
Builds the table content without wrapping it in a border or box. This is used by the layout system to get the raw children.
Handles dispatched events.
Initializes the Table component with props. Props are expected to be a map.
Called when the component is mounted.
Constructs a Table struct for view usage (not stateful component usage). Accepts a map of props and returns the struct directly (not a tuple).
Renders the Table component based on its current state.
Renders the table content, potentially with a border.
Called when the component is about to be unmounted.
Handles updates to the component state.