PivotLayout
A pivot layout.
PivotColumns is required. Pass an empty array when the layout only shows aggregations. Row groups use PivotGroupedColumns. Aggregations use PivotAggregationColumns. Leave TableColumns, TableAggregationColumns and RowGroupedColumns unset.
export interface PivotLayout extendsExtends
Properties
| Property | Type | Description |
|---|---|---|
| PivotAggregationColumns | PivotAggregationColumns | Columns showing aggregated values in Group Rows; 1st value in record is Column name, 2nd is either aggfunc (e.g. sum, avg etc.) or 'true' (to use default aggfunc) |
| PivotColumns | string[] | Mandatory list of Columns to pivot (provide empty array if just displaying Aggregations) |
| PivotColumnTotal | PivotTotalPosition | Display automatically calculated Totals within EACH Pivot Column Group, in the position specified |
| PivotExpandLevel | number | How deep to expand Pivot Columns (0 for none, 1 for 1st level only etc, -1 to expand all) |
| PivotGrandTotal | PivotTotalPosition | Display automatically calculated Totals of all Pivot Columns, in the position specified |
| PivotGroupedColumns | string[] | Columns which are row-grouped when the Layout is applied |
| PivotResultColumnsOrder | string[] | boolean | Ordered list of Pivot Result Columns; set to true to track current display order, or provide custom list |
| IsReadOnly | boolean | Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full') |
Property Details
PivotAggregationColumns
Columns showing aggregated values in Group Rows; 1st value in record is Column name, 2nd is either aggfunc (e.g. sum, avg etc.) or 'true' (to use default aggfunc)
PivotAggregationColumns?: PivotAggregationColumns;Property Value
PivotColumns
Mandatory list of Columns to pivot (provide empty array if just displaying Aggregations)
PivotColumns: string[];Property Value
string[]
PivotColumnTotal
Display automatically calculated Totals within EACH Pivot Column Group, in the position specified
PivotColumnTotal?: PivotTotalPosition;Property Value
PivotExpandLevel
How deep to expand Pivot Columns (0 for none, 1 for 1st level only etc, -1 to expand all)
PivotExpandLevel?: number;Property Value
number
PivotGrandTotal
Display automatically calculated Totals of all Pivot Columns, in the position specified
PivotGrandTotal?: PivotTotalPosition;Property Value
PivotGroupedColumns
Columns which are row-grouped when the Layout is applied
PivotGroupedColumns?: string[];Property Value
string[]
PivotResultColumnsOrder
Ordered list of Pivot Result Columns; set to true to track current display order, or provide custom list
PivotResultColumnsOrder?: string[] | boolean;Property Value
string[] | boolean
IsReadOnly
Inherited from AdaptableObject
Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
IsReadOnly?: boolean;Property Value
boolean