View Source TableRex (table_rex v4.1.0)

TableRex generates configurable, text-based tables for display

Summary

Functions

A shortcut function to render with a one-liner. Sacrifices all customisation for those that just want sane defaults. Returns {:ok, rendered_string} on success and {:error, reason} on failure.

A shortcut function to render with a one-liner. Sacrifices all customisation for those that just want sane defaults. Returns the rendered_string on success and raises RuntimeError on failure.

Functions

Link to this function

quick_render(rows, header \\ [], title \\ nil)

View Source
@spec quick_render(list(), list(), String.t() | nil) ::
  TableRex.Renderer.render_return()

A shortcut function to render with a one-liner. Sacrifices all customisation for those that just want sane defaults. Returns {:ok, rendered_string} on success and {:error, reason} on failure.

Link to this function

quick_render!(rows, header \\ [], title \\ nil)

View Source
@spec quick_render!(list(), list(), String.t() | nil) :: String.t() | no_return()

A shortcut function to render with a one-liner. Sacrifices all customisation for those that just want sane defaults. Returns the rendered_string on success and raises RuntimeError on failure.