AshReports.Layout.Row (ash_reports v0.1.0)

An explicit row container within grid/table layouts.

Rows allow explicit grouping of cells with shared properties like height, fill, stroke, and default alignment/padding that propagate to child cells.

Example

row :header_row do
  height "30pt"
  fill "#f0f0f0"
  align :center

  cell do
    label text: "Name"
  end

  cell do
    label text: "Value"
  end
end

Summary

Types

alignment()

@type alignment() :: atom() | {atom(), atom()} | nil

t()

@type t() :: %AshReports.Layout.Row{
  align: alignment(),
  elements: [map()],
  fill: String.t() | nil,
  height: String.t() | nil,
  inset: String.t() | nil,
  name: atom(),
  stroke: String.t() | nil
}