Raxol.Core.Renderer.Views.Table (Raxol v0.5.0)
View SourceTable view component for displaying tabular data.
Features:
- Column headers
- Row striping
- Column alignment
- Border styles
- Column resizing
- Row selection
Summary
Functions
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.border_style(), striped: boolean(), selectable: boolean(), selected: non_neg_integer() | nil, header_style: Raxol.Core.Renderer.View.style(), row_style: Raxol.Core.Renderer.View.style() }
Functions
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.