IO ANSI Table v0.4.24 IO.ANSI.Table.LineType View Source

Derives the line types of a table style.

Link to this section Summary

Functions

Structures a flat list of line types

Link to this section Types

Link to this type t() View Source
t() :: non_row() | [row()]

Link to this section Functions

Link to this function to_line_types(types, reversed \\ true) View Source

Structures a flat list of line types.

Examples

iex> alias IO.ANSI.Table.LineType
iex> types = [:top, :header, :separator, :row, :bottom]
iex> LineType.to_line_types(types, false)
[:top, :header, :separator, [:row], :bottom]

iex> alias IO.ANSI.Table.LineType
iex> types = [:top, :header, :separator, :even_row, :odd_row, :bottom]
iex> LineType.to_line_types(types, false)
[:top, :header, :separator, [:even_row, :odd_row], :bottom]