PhoenixPaper.TableBody (PhoenixPaper v0.1.0)

Copy Markdown View Source

The body section of a PhoenixPaper.Table (pp_table_body/1) — renders a <tbody> of PhoenixPaper.TableRows. See PhoenixPaper.Table's moduledoc for a full example.

Row dividers live here too, the same way dense/sticky_header live on PhoenixPaper.Table: a CSS descendant selector scoped to > tr (this body's own direct child rows only, not a header/footer row elsewhere in the table), with the last row's divider removed so the body doesn't end on a stray line right above the footer/table edge.

Summary

Functions

Renders a table body. See the module doc.

Functions

pp_table_body(assigns)

Renders a table body. See the module doc.

Attributes

  • paperize (:boolean) - Defaults to true.
  • striped (:boolean) - alternating row background on every other row. Defaults to false.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)