IO ANSI Table v0.1.5 IO.ANSI.Table.Config

Defines functions to retrieve table config properties at runtime.

Summary

Functions

Retrieves the header terms of a table

Retrieves the headers of a table

Retrieves the key headers of a table

Retrieves the margins to leave around a table

Functions

header_terms()

Retrieves the header terms of a table.

Examples

iex> alias IO.ANSI.Table.Config
iex> Config.header_terms
[]
headers()

Retrieves the headers of a table.

Examples

iex> alias IO.ANSI.Table.Config
iex> Config.headers
[]
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([])
[top: 1, bottom: 1, left: 2]