table_rex v0.10.0 TableRex.Renderer.Text

Renderer module which handles outputting ASCII-style tables for display.

Summary

Functions

Provides a level of sane defaults for the Text rendering module

Implementation of the TableRex.Renderer behaviour

Functions

default_options()

Provides a level of sane defaults for the Text rendering module.

render(table, opts)

Implementation of the TableRex.Renderer behaviour.

Available styling options.

horizontal_styles controls horizontal separators and can be one of:

  • :all: display separators between and around every row.
  • :header: display outer and header horizontal separators only.
  • :frame: display outer horizontal separators only.
  • :off: display no horizontal separators.

vertical_styles controls vertical separators and can be one of:

  • :all: display between and around every column.
  • :frame: display outer vertical separators only.
  • :off: display no vertical separators.