File tree 2 files changed +23
-1
lines changed
projects/igniteui-angular/src/lib/grids
2 files changed +23
-1
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 @@ -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
You can’t perform that action at this time.
0 commit comments