API REFERENCE

pivotSubtotals

Hides nested pivot subtotals or positions them above or below expanded groups.

What does this API do?

Hides nested pivot subtotals or positions them above or below expanded groups.

API for Pro features: Pivot

Exact input and result types

typescript
pivotSubtotals: 'off' | 'top' | 'bottom'
ItemValue
JavaScript namepivotSubtotals
HTML attributepivot-subtotals
Default'off'
Input type'off' | 'top' | 'bottom'

Usage flow

Set this on a property of the Grid element. In HTML, you can also use the pivot-subtotals attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Feature explanations and examples