IO.ANSI.Table.Heading (IO ANSI Table v0.4.32) View Source
Functions related to the column headings of a table.
Link to this section Summary
Functions
Updates the headings of a table specification.
Link to this section Functions
Specs
headings(IO.ANSI.Table.Spec.t()) :: IO.ANSI.Table.Spec.t()
Updates the headings of a table specification.
Examples
iex> alias IO.ANSI.Table.Heading
iex> spec = %{
...> headers: [:c4, :c1, :c2],
...> header_fixes: %{},
...> headings: [],
...> sort_attrs: [:asc, nil, nil],
...> sort_specs: [:c4],
...> sort_symbols: [desc: "↓", pos: :trailing, asc: "↑"]
...> }
iex> %{headings: headings} = Heading.headings(spec)
iex> headings
["C4↑", "C1", "C2"]