SelectoComponents.Components.NestedTable (selecto_components v0.3.21)
Component for rendering nested tables from subselect results. Provides expandable/collapsible sections for related data.
Link to this section Summary
Functions
Generates JavaScript hooks for nested table interactions
Renders an inline nested table for subselect results. Designed to appear as part of the parent table column.
Renders a nested table for subselect results.
Renders multiple nested tables for a row with subselect data
CSS styles for nested tables
Link to this section Functions
format_value(value)
get_data_keys(parsed_data, config \\ %{})
hooks()
Generates JavaScript hooks for nested table interactions
humanize_key(key)
inline_nested_table(assigns)
Renders an inline nested table for subselect results. Designed to appear as part of the parent table column.
attributes
Attributes
data(:any) (required)config(:map) (required)row_id(:string) (required)
nested_table(assigns)
Renders a nested table for subselect results.
attributes
Attributes
- data: The subselect data (JSON array or list of maps)
- config: Configuration for the nested table display
- row_id: Unique identifier for this row (for expand/collapse)
attributes-1
Attributes
data(:any) (required)config(:map) (required)row_id(:string) (required)expanded(:boolean) - Defaults tofalse.
nested_tables(assigns)
Renders multiple nested tables for a row with subselect data
attributes
Attributes
row(:map) (required)subselect_configs(:list) - Defaults to[].row_id(:string) (required)
parse_subselect_data(data, config \\ %{})
styles()
CSS styles for nested tables