DocsPDF
Groups in a PDF

Grouped tables print their group rows bold on a light fill, with their aggregates, above the rows they group. Nested groups and tree rows are indented in the first column, one step per level.
The aggregate text uses the column's format, so a summed amount looks like the amounts under it:
helper.accessor("amount", {
aggregationFn: "sum",
aggregatedCell: (c) => money.format(c.getValue() as number),
meta: { rowpine: { format: (v) => money.format(v as number) } },
})Set the group row fill with subtotalColor:
await exportPdf(table, { subtotalColor: "#eef2f0" }) // default #f4f4f5, or your theme's --muted
Was this page helpful?
Thanks. To tell us more, write to info@jqwidgets.com.