IO ANSI Table v0.2.2 IO.ANSI.Table.Config

Defines functions to retrieve table config properties at runtime.

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

Functions

align_attrs()
align_attrs() :: map

Retrieves the align attributes for a table.

Examples

iex> alias IO.ANSI.Table.Config
iex> Config.align_attrs
%{}
header_fixes()
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]
key_headers()

Retrieves the key headers of a table.

Examples

iex> alias IO.ANSI.Table.Config
iex> Config.key_headers
[]
margins(margins)
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]
max_width()

Retrieves the maximum column width of a table.

Examples

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