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

Link to this function

format_value(value)

Link to this function

get_data_keys(parsed_data, config \\ %{})

Generates JavaScript hooks for nested table interactions

Link to this function

humanize_key(key)

Link to this function

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)
Link to this function

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 to false.
Link to this function

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)
Link to this function

parse_subselect_data(data, config \\ %{})

CSS styles for nested tables