@@ -21,6 +21,7 @@ import {
21
21
AbsoluteScrollStrategy
22
22
} from '../services/index' ;
23
23
import { GridBaseAPIService } from './api.service' ;
24
+ import { IgxButtonDirective } from '../directives/button/button.directive' ;
24
25
import { IgxGridBaseComponent , IGridDataBindable } from './grid-base.component' ;
25
26
import { IgxDropDownComponent } from '../drop-down/drop-down.component' ;
26
27
import { IgxColumnHidingComponent } from './column-hiding.component' ;
@@ -104,8 +105,8 @@ export class IgxGridToolbarComponent extends DisplayDensityBase {
104
105
* const hidingButton = this.grid.toolbar.columnHidingButton;
105
106
* ```
106
107
*/
107
- @ViewChild ( 'columnHidingButton' , { static : false } )
108
- public columnHidingButton ;
108
+ @ViewChild ( 'columnHidingButton' , { read : IgxButtonDirective , static : false } )
109
+ public columnHidingButton : IgxButtonDirective ;
109
110
110
111
/**
111
112
* Provides a reference to the `IgxDropDownComponent` of the Export button.
@@ -122,8 +123,8 @@ export class IgxGridToolbarComponent extends DisplayDensityBase {
122
123
* const exportBtn = this.grid.toolbar.exportButton;
123
124
* ```
124
125
*/
125
- @ViewChild ( 'btnExport' , { static : false } )
126
- public exportButton ;
126
+ @ViewChild ( 'btnExport' , { read : IgxButtonDirective , static : false } )
127
+ public exportButton : IgxButtonDirective ;
127
128
128
129
/**
129
130
* Provides a reference to the `IgxDropDownComponent` of the Column Pinning UI.
@@ -149,8 +150,8 @@ export class IgxGridToolbarComponent extends DisplayDensityBase {
149
150
* const pinningButton = this.grid.toolbar.columnPinningButton;
150
151
* ```
151
152
*/
152
- @ViewChild ( 'columnPinningButton' , { static : false } )
153
- public columnPinningButton ;
153
+ @ViewChild ( 'columnPinningButton' , { read : IgxButtonDirective , static : false } )
154
+ public columnPinningButton : IgxButtonDirective ;
154
155
155
156
/**
156
157
* Returns a reference to the `IgxGridComponent` component, hosting the `IgxGridToolbarComponent`.
0 commit comments