File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
projects/igniteui-angular/src/lib/grids/filtering/base Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 122
122
</ button >
123
123
124
124
< div #buttonsContainer class ="igx-grid__filtering-row-editing-buttons ">
125
- < button igxButton =" flat " igxRipple (click) ="clearFiltering() " [disabled] ="disabled " [tabindex] ="disabled ">
125
+ < button [ igxButton] =" isNarrowWidth ? 'icon' : ' flat' " igxRipple (click) ="clearFiltering() " [disabled] ="disabled " [tabindex] ="disabled ">
126
126
< igx-icon > refresh</ igx-icon >
127
- {{filteringService.grid.resourceStrings.igx_grid_filter_row_reset}}
127
+ {{isNarrowWidth ? '' : filteringService.grid.resourceStrings.igx_grid_filter_row_reset}}
128
128
</ button >
129
- < button #closeButton igxButton =" flat " igxRipple (click) ="close() ">
129
+ < button #closeButton [ igxButton] =" isNarrowWidth ? 'icon' : ' flat' " igxRipple (click) ="close() ">
130
130
< igx-icon > close</ igx-icon >
131
- {{filteringService.grid.resourceStrings.igx_grid_filter_row_close}}
131
+ {{isNarrowWidth ? '' : filteringService.grid.resourceStrings.igx_grid_filter_row_close}}
132
132
</ button >
133
133
</ div >
Original file line number Diff line number Diff line change @@ -778,4 +778,8 @@ export class IgxGridFilteringRowComponent implements AfterViewInit {
778
778
private get isColumnFiltered ( ) {
779
779
return this . column . filteringExpressionsTree && this . column . filteringExpressionsTree . filteringOperands . length > 0 ;
780
780
}
781
+
782
+ public get isNarrowWidth ( ) : boolean {
783
+ return this . element . nativeElement . offsetWidth < 432 ;
784
+ }
781
785
}
You can’t perform that action at this time.
0 commit comments