Skip to content

Commit 7a07636

Browse files
committed
feat(IgxColumnGroup): add expand/collapse indicator in the column group #3343
1 parent 4bea53a commit 7a07636

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/igniteui-angular/src/lib/grids/headers/grid-header-group.component.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
[ghostHost]="grid.outletDirective.nativeElement"
3333
[attr.droppable]="true"
3434
[igxColumnMovingDrop]="column">
35+
<ng-container *ngIf="column.collapsible">
36+
<igx-icon [attr.draggable]="false" (click)="column.expanded = !column.expanded">
37+
{{column.expanded ? 'expand_less' : 'expand_more'}} </igx-icon>
38+
</ng-container>
3539
<ng-container *ngTemplateOutlet="column.headerTemplate ? column.headerTemplate : defaultColumn; context: { $implicit: column, column: column}">
3640
</ng-container>
3741
</div>

0 commit comments

Comments
 (0)