File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/app/grid-column-groups Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2626
2727< ng-template #defaultCollapseIndicator >
2828 < igx-icon [attr.draggable] ="false " >
29- {{column.expand ? 'expand_less' : 'expand_more '}} </ igx-icon >
29+ {{column.expand ? 'expand_less' : 'chevron_right '}} </ igx-icon >
3030</ ng-template >
3131
3232< ng-container *ngIf ="!grid.hasColumnLayouts && column.columnGroup ">
Original file line number Diff line number Diff line change 66 </ ng-template >
77 < igx-grid [allowFiltering] ="true " [rowSelectable] ="false " #grid [data] ="data " displayDensity ="compact " [showToolbar] ="true " [allowAdvancedFiltering] ="true " [columnHiding] ="true ">
88 < igx-column [movable] ="true " [resizable] ="true " [pinned] ="true " field ="Missing "> </ igx-column >
9- < igx-column-group [movable] ="true " header ="General Information " [collapsible] ="true " [expand] ="s " [hidden] ="true ">
9+ < igx-column-group [movable] ="true " header ="General Information " [collapsible] ="true " [expand] ="true " [hidden] ="true ">
1010 < igx-column [movable] ="true " [filterable] ="false " [hidden] ="true " sortable ="true " resizable ="true " field ="CompanyName " width ="200px " [visibleOnCollapse] ="false "> </ igx-column >
1111 < igx-column field ="Missing "> </ igx-column >
1212 < igx-column-group [movable] ="true " header ="Person Details " [collapsible] ="true " [expand] ="false " [visibleOnCollapse] ="true ">
13- < igx-column [movable] ="true " [visibleOnCollapse] ="true " [hidden] ="true " filterable ="true " sortable ="true " resizable ="true " field ="ContactName "> </ igx-column >
13+ < igx-column [movable] ="true " [visibleOnCollapse] ="false " [hidden] ="true " filterable ="true " sortable ="true " resizable ="true " field ="ContactName "> </ igx-column >
1414 < igx-column [movable] ="true " [visibleOnCollapse] ="false " [pinned] ="true " filterable ="true " sortable ="true " resizable ="true " field ="ContactTitle "> </ igx-column >
1515 </ igx-column-group >
1616 < ng-template igxCollapsibleIndicator let-column ="column " #ind >
5757 </ igx-column-group >
5858 </ igx-grid >
5959 < span igxButton (click) ="log() "> Pin first group</ span >
60- < span igxButton (click) ="hideGroup () "> Toggle expand - Address Information</ span >
60+ < span igxButton (click) ="pinGroup () "> Toggle expand - Address Information</ span >
6161 < span igxButton (click) ="toggleCollapsible() "> Toggle collapsible - General Information</ span >
6262 </ section >
6363</ div >
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ export class GridColumnGroupsSampleComponent implements AfterViewInit {
5555 }
5656
5757 pinGroup ( ) {
58- const t = this . grid . getColumnByName ( 'ContactTitle ' ) ;
59- t . pinned = ! t . pinned ;
58+ const t = this . grid . getColumnByName ( 'ContactName ' ) ;
59+ t . visibleOnCollapse = ! t . visibleOnCollapse ;
6060 }
6161
6262 log ( ) {
You can’t perform that action at this time.
0 commit comments