Raxol.Core.Renderer.Views.Table (Raxol v0.4.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.
Renders the Table component based on its current state.
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.
Renders the Table component based on its current state.
Called when the component is about to be unmounted.
Handles updates to the component state.