@@ -21,6 +21,7 @@ import {
2121 AbsoluteScrollStrategy
2222} from '../services/index' ;
2323import { GridBaseAPIService } from './api.service' ;
24+ import { IgxButtonDirective } from '../directives/button/button.directive' ;
2425import { IgxGridBaseComponent , IGridDataBindable } from './grid-base.component' ;
2526import { IgxDropDownComponent } from '../drop-down/drop-down.component' ;
2627import { IgxColumnHidingComponent } from './column-hiding.component' ;
@@ -104,8 +105,8 @@ export class IgxGridToolbarComponent extends DisplayDensityBase {
104105 * const hidingButton = this.grid.toolbar.columnHidingButton;
105106 * ```
106107 */
107- @ViewChild ( 'columnHidingButton' )
108- public columnHidingButton ;
108+ @ViewChild ( 'columnHidingButton' , { read : IgxButtonDirective } )
109+ public columnHidingButton : IgxButtonDirective ;
109110
110111 /**
111112 * Provides a reference to the `IgxDropDownComponent` of the Export button.
@@ -122,8 +123,8 @@ export class IgxGridToolbarComponent extends DisplayDensityBase {
122123 * const exportBtn = this.grid.toolbar.exportButton;
123124 * ```
124125 */
125- @ViewChild ( 'btnExport' )
126- public exportButton ;
126+ @ViewChild ( 'btnExport' , { read : IgxButtonDirective } )
127+ public exportButton : IgxButtonDirective ;
127128
128129 /**
129130 * Provides a reference to the `IgxDropDownComponent` of the Column Pinning UI.
@@ -149,8 +150,8 @@ export class IgxGridToolbarComponent extends DisplayDensityBase {
149150 * const pinningButton = this.grid.toolbar.columnPinningButton;
150151 * ```
151152 */
152- @ViewChild ( 'columnPinningButton' )
153- public columnPinningButton ;
153+ @ViewChild ( 'columnPinningButton' , { read : IgxButtonDirective } )
154+ public columnPinningButton : IgxButtonDirective ;
154155
155156 /**
156157 * Returns a reference to the `IgxGridComponent` component, hosting the `IgxGridToolbarComponent`.
0 commit comments