File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 119
119
< div class ="igx-grid__tr--header ">
120
120
< igx-icon [attr.draggable] ="false "
121
121
(click) ="toggleColumn(column) ">
122
- {{columnGroupStates.get (column.field ) ? 'expand_more ' : 'expand_less '}}</ igx-icon >
122
+ {{getColumnGroupExpandState (column) ? 'chevron_right ' : 'expand_more '}}</ igx-icon >
123
123
{{column.header}}
124
124
</ div >
125
125
</ ng-template >
Original file line number Diff line number Diff line change @@ -905,6 +905,12 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
905
905
return this . calcHeight ;
906
906
}
907
907
908
+ public getColumnGroupExpandState ( col : IgxColumnComponent ) {
909
+ const state = this . columnGroupStates . get ( col . field ) ;
910
+ // columns are expanded by default?
911
+ return state !== undefined && state !== null ? state : false ;
912
+ }
913
+
908
914
public toggleRowGroup ( col : IgxColumnComponent , newState : boolean ) {
909
915
if ( this . hasMultipleValues ) {
910
916
const parentCols = col . parent ? col . parent . children . toArray ( ) : this . columns . filter ( x => x . level === 0 ) ;
You can’t perform that action at this time.
0 commit comments