Documentation

@kanunilabs/pivotgrid-react


@kanunilabs/pivotgrid-react / PivotLayoutState

Interface: PivotLayoutState

Controls pivot grid layout, totals visibility, and structural options.

Properties

chartType?

optional chartType?: string

Chart integration type when rendering in chart mode.


dataFieldPosition?

optional dataFieldPosition?: "rows" | "columns"

Place data field labels in row headers or column headers.


hideEmptySummaryCells?

optional hideEmptySummaryCells?: boolean

Hide rows/columns that have no data.


prefilter?

optional prefilter?: FilterGroup

Server-side or computed prefilter applied before aggregation.


rowHeaderLayout?

optional rowHeaderLayout?: "tabular" | "tree"

Row header style: 'tabular' gives one column per row field, 'tree' nests all into one column.


showColumnGrandTotals?

optional showColumnGrandTotals?: boolean

The grand total COLUMN, at the end of every row.


showColumnTotals?

optional showColumnTotals?: 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?

optional showFilterArea?: boolean


showFooter?

optional showFooter?: boolean


showGrandTotals?

optional showGrandTotals?: "none" | "rows" | "columns" | "both"

Coarse form of showRowGrandTotals + showColumnGrandTotals. Bridged to them at the controller boundary; an explicitly passed granular flag wins.


showRowGrandTotals?

optional showRowGrandTotals?: boolean

The grand total ROW, at the end of the grid.


showRowTotals?

optional showRowTotals?: boolean

Per-level subtotals on the row axis.


showSubTotals?

optional showSubTotals?: "none" | "rows" | "columns" | "both"

Coarse form of showRowTotals + showColumnTotals. Bridged at the controller boundary; an explicitly passed granular flag wins.


totalsDisplayMode?

optional totalsDisplayMode?: "top" | "bottom"

Alias of totalsPosition, bridged at the controller boundary.


totalsPosition?

optional totalsPosition?: "top" | "bottom"

Whether subtotals appear above or below their groups.