File tree Expand file tree Collapse file tree 5 files changed +29
-7
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 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
604604 this . notifyChanges ( ) ;
605605 }
606606
607+ /**
608+ * @hidden
609+ * @internal
610+ */
611+ @Input ( )
612+ public class = '' ;
613+
607614 /**
608615 * Gets/Sets the height.
609616 * @example
@@ -633,6 +640,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
633640 get hostWidth ( ) {
634641 return this . _width || this . _hostWidth ;
635642 }
643+
636644 /**
637645 * Gets/Sets the width of the grid.
638646 * @example
@@ -1940,7 +1948,10 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
19401948 */
19411949 @HostBinding ( 'attr.class' )
19421950 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 ( ' ' ) ;
19441955 }
19451956
19461957 get bannerClass ( ) : string {
Original file line number Diff line number Diff line change 190190 < ng-container *ngTemplateOutlet ="template "> </ ng-container >
191191 < div class ="igx-grid__row-editing-outlet " igxOverlayOutlet #igxRowEditingOverlayOutlet > </ div >
192192 </ 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 ' >
195195 </ igx-circular-bar >
196196 </ div >
197197 < span *ngIf ="hasMovableColumns && draggedColumn " [igxColumnMovingDrop] ="headerContainer " [attr.droppable] ="true "
Original file line number Diff line number Diff line change 7272 < igx-grid-filtering-row #filteringRow [style.width.px] ='calcWidth ' *ngIf ="filteringService.isFilterRowVisible "
7373 [column] ="filteringService.filteredColumn "> </ igx-grid-filtering-row >
7474 </ 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 ' >
7777 </ igx-circular-bar >
7878 </ div >
7979 < 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 {
6868
6969 private _filterColumnsPrompt = 'Filter columns list ...' ;
7070
71+ /**
72+ * @hidden
73+ * @internal
74+ */
75+ @Input ( )
76+ public class = '' ;
77+
7178 /**
7279 * Gets the height for the `IgxGridToolbarComponent`'s drop down panels.
7380 * ```typescript
@@ -211,6 +218,10 @@ export class IgxGridToolbarComponent extends DisplayDensityBase {
211218
212219 @HostBinding ( 'attr.class' )
213220 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 ( ' ' ) ;
214225 return this . getComponentDensityClass ( 'igx-grid-toolbar' ) ;
215226 }
216227
Original file line number Diff line number Diff line change 5656 [column] ="filteringService.filteredColumn "> </ igx-grid-filtering-row >
5757 </ div >
5858 < 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 ' >
6161 </ igx-circular-bar >
6262 </ div >
6363 < span *ngIf ="hasMovableColumns && draggedColumn " [igxColumnMovingDrop] ="headerContainer " [attr.droppable] ="true "
You can’t perform that action at this time.
0 commit comments