IPivotDimension

Configuration of a pivot dimension.

Optional childLevel

Section titled "childLevel"

Allows defining a hierarchy when multiple sub groups need to be extracted from single member.

childLevel?: IPivotDimension

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:116

Optional dataType

Section titled "dataType"

The dataType of the related data field.

dataType?: GridColumnDataType

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:141

Optional displayName

Section titled "displayName"

Display name to show instead of the field name of this value. *

displayName?: string

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:125

Enables/Disables a particular dimension from pivot structure.

enabled: boolean

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:127

A predefined or defined via the igxPivotSelector filter expression tree for the current dimension to be applied in the filter pipe.

filter?: IFilteringExpressionsTree | null

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:131

Optional headerFormatter

Section titled "headerFormatter"

Optional function to format the display value of a dimension header. Unlike memberFunction, this does not affect the data key used for grouping or sorting — it is applied when rendering the dimension header text (both row and column dimension headers). When set, the return value of this function is shown instead of the raw dimension value. Return null or undefined to fall back to the raw value.

headerFormatter?: object

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:164

Example

// Display dates in a locale-aware short date format.
{ memberName: 'Date', enabled: true, headerFormatter: (value) => new Date(value).toLocaleDateString() }

Level of the dimension.

level?: number

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:145

Optional memberFunction

Section titled "memberFunction"

Function that extracts the value

memberFunction?: object

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:123

Unique member to extract related data field value or the result of the memberFunction.

memberName: string

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:118

Optional sortable

Section titled "sortable"

Enable/disable sorting for a particular dimension. True by default.

sortable?: boolean

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:133

Optional sortDirection

Section titled "sortDirection"

The sorting direction of the current dimension. Determines the order in which the values will appear in the related dimension.

sortDirection?: SortingDirection

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:137

The width of the dimension cells to be rendered.Can be pixel, % or "auto".

width?: string

Defined in projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts:143