File tree 5 files changed +29
-7
lines changed
projects/igniteui-angular/src/lib/grids
5 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -604,6 +604,13 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
604
604
this . notifyChanges ( ) ;
605
605
}
606
606
607
+ /**
608
+ * @hidden
609
+ * @internal
610
+ */
611
+ @Input ( )
612
+ public class = '' ;
613
+
607
614
/**
608
615
* Gets/Sets the height.
609
616
* @example
@@ -633,6 +640,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
633
640
get hostWidth ( ) {
634
641
return this . _width || this . _hostWidth ;
635
642
}
643
+
636
644
/**
637
645
* Gets/Sets the width of the grid.
638
646
* @example
@@ -1940,7 +1948,10 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
1940
1948
*/
1941
1949
@HostBinding ( 'attr.class' )
1942
1950
get hostClass ( ) : string {
1943
- return this . getComponentDensityClass ( 'igx-grid' ) ;
1951
+ const classes = [ this . getComponentDensityClass ( 'igx-grid' ) ] ;
1952
+ // The custom classes should be at the end.
1953
+ classes . push ( this . class ) ;
1954
+ return classes . join ( ' ' ) ;
1944
1955
}
1945
1956
1946
1957
get bannerClass ( ) : string {
Original file line number Diff line number Diff line change 190
190
< ng-container *ngTemplateOutlet ="template "> </ ng-container >
191
191
< div class ="igx-grid__row-editing-outlet " igxOverlayOutlet #igxRowEditingOverlayOutlet > </ div >
192
192
</ div >
193
- < div [style.display] =" shouldOverlayLoading ? 'flex' : 'none' " #loadingOverlay >
194
- < igx-circular-bar [indeterminate] ="true ">
193
+ < div #loadingOverlay >
194
+ < igx-circular-bar [indeterminate] ="true " *ngIf =' shouldOverlayLoading ' >
195
195
</ igx-circular-bar >
196
196
</ div >
197
197
< span *ngIf ="hasMovableColumns && draggedColumn " [igxColumnMovingDrop] ="headerContainer " [attr.droppable] ="true "
Original file line number Diff line number Diff line change 72
72
< igx-grid-filtering-row #filteringRow [style.width.px] ='calcWidth ' *ngIf ="filteringService.isFilterRowVisible "
73
73
[column] ="filteringService.filteredColumn "> </ igx-grid-filtering-row >
74
74
</ div >
75
- < div [style.display] =" shouldOverlayLoading ? 'flex' : 'none' " #loadingOverlay >
76
- < igx-circular-bar [indeterminate] ="true ">
75
+ < div #loadingOverlay >
76
+ < igx-circular-bar [indeterminate] ="true " *ngIf =' shouldOverlayLoading ' >
77
77
</ igx-circular-bar >
78
78
</ div >
79
79
< span *ngIf ="hasMovableColumns && draggedColumn " [igxColumnMovingDrop] ="headerContainer " [attr.droppable] ="true "
Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ export class IgxGridToolbarComponent extends DisplayDensityBase {
68
68
69
69
private _filterColumnsPrompt = 'Filter columns list ...' ;
70
70
71
+ /**
72
+ * @hidden
73
+ * @internal
74
+ */
75
+ @Input ( )
76
+ public class = '' ;
77
+
71
78
/**
72
79
* Gets the height for the `IgxGridToolbarComponent`'s drop down panels.
73
80
* ```typescript
@@ -211,6 +218,10 @@ export class IgxGridToolbarComponent extends DisplayDensityBase {
211
218
212
219
@HostBinding ( 'attr.class' )
213
220
get hostClass ( ) : string {
221
+ const classes = [ this . getComponentDensityClass ( 'igx-grid-toolbar' ) ] ;
222
+ // The custom classes should be at the end.
223
+ classes . push ( this . class ) ;
224
+ return classes . join ( ' ' ) ;
214
225
return this . getComponentDensityClass ( 'igx-grid-toolbar' ) ;
215
226
}
216
227
Original file line number Diff line number Diff line change 56
56
[column] ="filteringService.filteredColumn "> </ igx-grid-filtering-row >
57
57
</ div >
58
58
< div class ="igx-grid__thead-thumb " [hidden] ='!hasVerticalSroll() ' [style.width.px] ="scrollWidth "> </ div >
59
- < div [style.display] =" shouldOverlayLoading ? 'flex' : 'none' " #loadingOverlay >
60
- < igx-circular-bar [indeterminate] ="true ">
59
+ < div #loadingOverlay >
60
+ < igx-circular-bar [indeterminate] ="true " *ngIf =' shouldOverlayLoading ' >
61
61
</ igx-circular-bar >
62
62
</ div >
63
63
< span *ngIf ="hasMovableColumns && draggedColumn " [igxColumnMovingDrop] ="headerContainer " [attr.droppable] ="true "
You can’t perform that action at this time.
0 commit comments