@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
42 lines (41 loc) • 1.93 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { ChangeDetectorRef, NgZone } from '@angular/core';
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
import { ExcelService } from './excel.service';
import { ContextService } from '../common/provider.service';
import { ToolbarToolBase } from '../common/toolbar-tool-base.directive';
import * as i0 from "@angular/core";
/**
* Represents the `export-to-Excel` toolbar tool of the Grid.
* You can apply this directive to any `kendo-toolbar-button` element inside a
* ToolbarComponent used in the Grid.
*
* When the user clicks a button associated with the directive, the
* [excelExport]({% slug api_grid_gridcomponent %}#toc-excelexport) event
* fires ([see example]({% slug excelexport_grid %})).
*
* @example
* ```html-no-run
* <kendo-grid>
* <kendo-toolbar>
* <kendo-toolbar-button text="Excel Export" kendoGridExcelTool></kendo-toolbar-button>
* </kendo-toolbar>
* <kendo-grid-excel fileName="Grid.xlsx">
* </kendo-grid-excel>
* </kendo-grid>
* ```
*/
export declare class ExcelCommandToolbarDirective extends ToolbarToolBase {
private excelService;
constructor(excelService: ExcelService, host: ToolBarButtonComponent, ctx: ContextService, zone: NgZone, cdr: ChangeDetectorRef);
ngOnInit(): void;
/**
* @hidden
*/
onClick(e: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ExcelCommandToolbarDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ExcelCommandToolbarDirective, "[kendoGridExcelTool]", never, {}, {}, never, never, true, never>;
}