@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
Deprecated
NOT IMPLEMENTED. Subtotals on the column axis do not exist:
row subtotals are inserted while flattening the row tree, and the column
axis has no equivalent pass in the renderer. Setting this to true
explicitly reports through onError; it is left in the type because it
has always had a default of true, so removing it would be a breaking
change for a value that never did anything.
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. Bridged for the ROW axis only — asking for
'columns' or 'both' reports through onError, because column subtotals
are not implemented. See showColumnTotals.
totalsDisplayMode?
optionaltotalsDisplayMode?:"top"|"bottom"
Alias of totalsPosition, bridged at the controller boundary.
totalsPosition?
optionaltotalsPosition?:"top"|"bottom"
Whether subtotals appear above or below their groups.