UNPKG

@progress/kendo-angular-grid

Version:

Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.

39 lines (38 loc) 1.97 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2026 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 { CSVService } from './csv.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 CSV** toolbar tool of the Grid. * Apply this directive to any `kendo-toolbar-button` element inside a ToolbarComponent used in the Grid. * When the user clicks the button, the [`csvExport`](https://www.telerik.com/kendo-angular-ui/components/grid/api/gridcomponent#csvexport) event fires ([see example](https://www.telerik.com/kendo-angular-ui/components/grid/export/csv-export)). * * @example * ```html * <kendo-grid> * <kendo-toolbar> * <kendo-toolbar-button text="CSV Export" kendoGridCSVTool></kendo-toolbar-button> * </kendo-toolbar> * <kendo-grid-csv fileName="Grid.csv"></kendo-grid-csv> * </kendo-grid> * ``` * @remarks * Applied to: {@link ToolBarButtonComponent}. */ export declare class CSVCommandToolbarDirective extends ToolbarToolBase { private csvService; constructor(csvService: CSVService, host: ToolBarButtonComponent, ctx: ContextService, zone: NgZone, cdr: ChangeDetectorRef); ngOnInit(): void; /** * @hidden */ onClick(e: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<CSVCommandToolbarDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<CSVCommandToolbarDirective, "[kendoGridCSVTool]", never, {}, {}, never, never, true, never>; }