AshReports.Layout.Header (ash_reports v0.1.0)
A table header section that can repeat on each page.
Headers are semantic table sections that can be configured to repeat when the table spans multiple pages, supporting accessibility requirements.
Example
table :data_table do
columns [fr(1), fr(2), fr(1)]
header repeat: true do
cell do
label text: "Name"
end
cell do
label text: "Description"
end
cell do
label text: "Value"
end
end
# Data cells follow...
endMultiple header levels can be used for cascading headers:
header repeat: true, level: 1 do
# Primary header
end
header repeat: true, level: 2 do
# Secondary header
end
Summary
Types
@type t() :: %AshReports.Layout.Header{ level: pos_integer(), name: atom() | nil, repeat: boolean(), table_cells: [AshReports.Layout.TableCell.t()] }