@kanunilabs/pivotgrid-react / PivotLayoutState
Interface: PivotLayoutState
Controls pivot grid layout, totals visibility, and structural options.
Properties
chartType?
optionalchartType?:string
Chart integration type when rendering in chart mode.
dataFieldPosition?
optionaldataFieldPosition?:"rows"|"columns"
Place data field labels in row headers or column headers.
hideEmptySummaryCells?
optionalhideEmptySummaryCells?:boolean
Hide rows/columns that have no data.
prefilter?
optionalprefilter?:FilterGroup
Server-side or computed prefilter applied before aggregation.
rowHeaderLayout?
optionalrowHeaderLayout?:"tabular"|"tree"
Row header style: 'tabular' gives one column per row field, 'tree' nests all into one column.
showColumnGrandTotals?
optionalshowColumnGrandTotals?:boolean
The grand total COLUMN, at the end of every row.
showColumnTotals?
optionalshowColumnTotals?:boolean
Per-level subtotals on the column axis: an expanded column group gets a
total column (before or after its children, per totalsPosition).
Default true.
showFilterArea?
optionalshowFilterArea?:boolean
showFooter?
optionalshowFooter?:boolean
showGrandTotals?
optionalshowGrandTotals?:"none"|"rows"|"columns"|"both"
Coarse form of showRowGrandTotals + showColumnGrandTotals. Bridged to
them at the controller boundary; an explicitly passed granular flag wins.
showRowGrandTotals?
optionalshowRowGrandTotals?:boolean
The grand total ROW, at the end of the grid.
showRowTotals?
optionalshowRowTotals?:boolean
Per-level subtotals on the row axis.
showSubTotals?
optionalshowSubTotals?:"none"|"rows"|"columns"|"both"
Coarse form of showRowTotals + showColumnTotals. Bridged at the
controller boundary; an explicitly passed granular flag wins.
totalsDisplayMode?
optionaltotalsDisplayMode?:"top"|"bottom"
Alias of totalsPosition, bridged at the controller boundary.
totalsPosition?
optionaltotalsPosition?:"top"|"bottom"
Whether subtotals appear above or below their groups.