IO ANSI Table v0.1.19 IO.ANSI.Table.Config

Defines functions to retrieve table config properties at runtime.

Summary

Functions

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

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
[:unknown]
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