IO ANSI Table v0.2.4 IO.ANSI.Table.Config View Source
Defines functions to retrieve table config properties at runtime.
Link to this section Summary
Functions
Retrieves the align attributes for a table
Retrieves the header fixes for a table
Retrieves the headers of a table
Retrieves the key headers of a table
Retrieves the margins to leave around a table
Retrieves the maximum column width of a table
Link to this section Functions
Retrieves the align attributes for a table.
Examples
iex> alias IO.ANSI.Table.Config
iex> Config.align_attrs
%{}
Retrieves the header fixes for a table.
Examples
iex> alias IO.ANSI.Table.Config
iex> Config.header_fixes
%{}
Retrieves the headers of a table.
Examples
iex> alias IO.ANSI.Table.Config
iex> Config.headers
[:undefined]
Link to this function
key_headers()
View Source
key_headers() :: [IO.ANSI.Table.Formatter.collection_key]
Retrieves the key headers of a table.
Examples
iex> alias IO.ANSI.Table.Config
iex> Config.key_headers
[]
Retrieves the margins to leave around a table.
Examples
iex> alias IO.ANSI.Table.Config
iex> Config.margins(nil)
[top: 1, bottom: 1, left: 2]