@@ -89,7 +89,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
89
89
* Emitted when the dimension collection is changed via the grid chip area.
90
90
*
91
91
* @remarks
92
- * Returns the new dimension collection and its type:
92
+ * Returns the new dimension collection and its type:
93
93
* @example
94
94
* ```html
95
95
* <igx-pivot-grid #grid [data]="localData" [height]="'305px'" [autoGenerate]="true"
@@ -316,7 +316,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
316
316
public get defaultExpandState ( ) {
317
317
return this . _defaultExpandState ;
318
318
}
319
-
319
+
320
320
public set defaultExpandState ( val : boolean ) {
321
321
this . _defaultExpandState = val ;
322
322
}
@@ -1114,7 +1114,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
1114
1114
ref . instance . header = parent != null ? key . split ( parent . header + '-' ) [ 1 ] : key ;
1115
1115
ref . instance . field = key ;
1116
1116
ref . instance . parent = parent ;
1117
- ref . instance . width = value . dimension . width || MINIMUM_COLUMN_WIDTH + 'px' ;
1117
+ ref . instance . width = value . dimension ? .width || MINIMUM_COLUMN_WIDTH + 'px' ;
1118
1118
ref . instance . dataType = this . pivotConfiguration . values [ 0 ] ?. dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
1119
1119
ref . instance . formatter = this . pivotConfiguration . values [ 0 ] ?. formatter ;
1120
1120
ref . instance . sortable = true ;
@@ -1150,13 +1150,13 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
1150
1150
refSibling . instance . header = parent != null ? key . split ( parent . header + '-' ) [ 1 ] : key ;
1151
1151
refSibling . instance . field = key ;
1152
1152
refSibling . instance . parent = parent ;
1153
- ref . instance . width = value . dimension . width || MINIMUM_COLUMN_WIDTH + 'px' ;
1153
+ ref . instance . width = value . dimension ? .width || MINIMUM_COLUMN_WIDTH + 'px' ;
1154
1154
ref . instance . sortable = true ;
1155
1155
refSibling . instance . dataType = this . pivotConfiguration . values [ 0 ] ?. dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
1156
1156
refSibling . instance . formatter = this . pivotConfiguration . values [ 0 ] ?. formatter ;
1157
1157
columns . push ( refSibling . instance ) ;
1158
1158
1159
- measureChildren = this . getMeasureChildren ( factoryColumn , data , refSibling . instance , false , value . dimension . width ) ;
1159
+ measureChildren = this . getMeasureChildren ( factoryColumn , data , refSibling . instance , false , value . dimension ? .width ) ;
1160
1160
refSibling . instance . children . reset ( measureChildren ) ;
1161
1161
columns = columns . concat ( measureChildren ) ;
1162
1162
}
@@ -1169,7 +1169,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
1169
1169
refSibling . instance . header = parent != null ? key . split ( parent . header + '-' ) [ 1 ] : key ;
1170
1170
refSibling . instance . field = key ;
1171
1171
refSibling . instance . parent = parent ;
1172
- ref . instance . width = value . dimension . width || MINIMUM_COLUMN_WIDTH + 'px' ;
1172
+ ref . instance . width = value . dimension ? .width || MINIMUM_COLUMN_WIDTH + 'px' ;
1173
1173
ref . instance . sortable = true ;
1174
1174
refSibling . instance . dataType = this . pivotConfiguration . values [ 0 ] ?. dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
1175
1175
refSibling . instance . formatter = this . pivotConfiguration . values [ 0 ] ?. formatter ;
0 commit comments