Skip to content

Commit cce1100

Browse files
committed
chore(*): refactor code about expand/collapse
1 parent 4760305 commit cce1100

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

projects/igniteui-angular/src/lib/grids/columns/column-group.component.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After
303303

304304
set width(val) { }
305305

306-
private setExpandCollapseState() {
307-
this.children.filter(col => (col.visibleOnCollapse !== undefined)).forEach(c => {
308-
c.hidden = this._expand ? c.visibleOnCollapse : !c.visibleOnCollapse;
309-
});
310-
}
311-
312306
// constructor(public gridAPI: GridBaseAPIService<IgxGridBaseDirective & IGridDataBindable>, public cdr: ChangeDetectorRef) {
313307
// // D.P. constructor duplication due to es6 compilation, might be obsolete in the future
314308
// super(gridAPI, cdr);

projects/igniteui-angular/src/lib/grids/columns/column.component.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,16 @@ export class IgxColumnComponent implements AfterContentInit {
17511751
this.calcPixelWidth = parseInt(this._calcWidth, 10);
17521752
}
17531753

1754+
/**
1755+
* @hidden
1756+
* @internal
1757+
*/
1758+
protected setExpandCollapseState() {
1759+
this.children.filter(col => (col.visibleOnCollapse !== undefined)).forEach(c => {
1760+
c.hidden = this._expand ? c.visibleOnCollapse : !c.visibleOnCollapse;
1761+
});
1762+
}
1763+
17541764
/**
17551765
*@hidden
17561766
*/

0 commit comments

Comments
 (0)