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

Link to this function align_attrs() View Source
align_attrs() :: map

Retrieves the align attributes for a table.

Examples

iex> alias IO.ANSI.Table.Config
iex> Config.align_attrs
%{}
Link to this function header_fixes() View Source
header_fixes() :: map

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]

Retrieves the key headers of a table.

Examples

iex> alias IO.ANSI.Table.Config
iex> Config.key_headers
[]
Link to this function margins(margins) View Source
margins(Keyword.t | nil) :: Keyword.t

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]

Retrieves the maximum column width of a table.

Examples

iex> alias IO.ANSI.Table.Config
iex> Config.max_width
99