@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
40 lines (39 loc) • 1.64 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 { EditService } from './edit.service';
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
import * as i0 from "@angular/core";
/**
* Represents the command for adding a new item to the Grid.
* You can apply this directive to any `kendo-toolbar-button` element inside a
* ToolbarComponent used in the Grid.
*
* When the user clicks the toolbar button that is associated with the directive, , the
* [add]({% slug api_grid_gridcomponent %}#toc-add) event is triggered
* ([see example]({% slug basics_editing_grid %})).
*
* @example
* ```html-no-run
* <kendo-grid>
* <kendo-toolbar>
* <kendo-toolbar-button text="Add new" kendoGridAddTool></kendo-toolbar-button>
* </kendo-toolbar>
* </kendo-grid>
* ```
*/
export declare class AddCommandToolbarDirective {
private editService;
private host;
private clickSub;
constructor(editService: EditService, host: ToolBarButtonComponent);
ngOnInit(): void;
ngOnDestroy(): void;
/**
* @hidden
*/
onClick(e: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AddCommandToolbarDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<AddCommandToolbarDirective, "[kendoGridAddTool]", never, {}, {}, never, never, true, never>;
}