@@ -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
}
@@ -1121,7 +1121,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
1121
1121
ref . instance . header = parent != null ? key . split ( parent . header + '-' ) [ 1 ] : key ;
1122
1122
ref . instance . field = key ;
1123
1123
ref . instance . parent = parent ;
1124
- ref . instance . width = value . dimension . width || MINIMUM_COLUMN_WIDTH + 'px' ;
1124
+ ref . instance . width = value . dimension ? .width || MINIMUM_COLUMN_WIDTH + 'px' ;
1125
1125
ref . instance . dataType = this . pivotConfiguration . values [ 0 ] ?. dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
1126
1126
ref . instance . formatter = this . pivotConfiguration . values [ 0 ] ?. formatter ;
1127
1127
ref . instance . sortable = true ;
@@ -1157,13 +1157,13 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
1157
1157
refSibling . instance . header = parent != null ? key . split ( parent . header + '-' ) [ 1 ] : key ;
1158
1158
refSibling . instance . field = key ;
1159
1159
refSibling . instance . parent = parent ;
1160
- ref . instance . width = value . dimension . width || MINIMUM_COLUMN_WIDTH + 'px' ;
1160
+ ref . instance . width = value . dimension ? .width || MINIMUM_COLUMN_WIDTH + 'px' ;
1161
1161
ref . instance . sortable = true ;
1162
1162
refSibling . instance . dataType = this . pivotConfiguration . values [ 0 ] ?. dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
1163
1163
refSibling . instance . formatter = this . pivotConfiguration . values [ 0 ] ?. formatter ;
1164
1164
columns . push ( refSibling . instance ) ;
1165
1165
1166
- measureChildren = this . getMeasureChildren ( factoryColumn , data , refSibling . instance , false , value . dimension . width ) ;
1166
+ measureChildren = this . getMeasureChildren ( factoryColumn , data , refSibling . instance , false , value . dimension ? .width ) ;
1167
1167
refSibling . instance . children . reset ( measureChildren ) ;
1168
1168
columns = columns . concat ( measureChildren ) ;
1169
1169
}
@@ -1176,7 +1176,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
1176
1176
refSibling . instance . header = parent != null ? key . split ( parent . header + '-' ) [ 1 ] : key ;
1177
1177
refSibling . instance . field = key ;
1178
1178
refSibling . instance . parent = parent ;
1179
- ref . instance . width = value . dimension . width || MINIMUM_COLUMN_WIDTH + 'px' ;
1179
+ ref . instance . width = value . dimension ? .width || MINIMUM_COLUMN_WIDTH + 'px' ;
1180
1180
ref . instance . sortable = true ;
1181
1181
refSibling . instance . dataType = this . pivotConfiguration . values [ 0 ] ?. dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
1182
1182
refSibling . instance . formatter = this . pivotConfiguration . values [ 0 ] ?. formatter ;
0 commit comments