@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
35 lines (34 loc) • 1.74 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
import { Button } from '@progress/kendo-angular-buttons';
import { ContextService } from '../common/provider.service';
import { EditService } from './edit.service';
import * as i0 from "@angular/core";
/**
* Represents the command for adding a new item to the Grid. Apply this directive to any
* `button` element inside a [ToolbarTemplate](https://www.telerik.com/kendo-angular-ui/components/grid/api/commandcolumncomponent).
* When you click the button with this directive, the [`add`](https://www.telerik.com/kendo-angular-ui/components/grid/api/gridcomponent#add) event is triggered
* ([see example](https://www.telerik.com/kendo-angular-ui/components/grid/editing/basics)).
*
* @example
* ```html
* <button kendoGridAddCommand>Add new item</button>
* ```
*/
export declare class AddCommandDirective extends Button {
private editService;
/**
* @hidden
*/
onClick(e: any): void;
/**
* @hidden
*/
get commandClass(): boolean;
constructor(editService: EditService, element: ElementRef, renderer: Renderer, ctx: ContextService, ngZone: NgZone);
static ɵfac: i0.ɵɵFactoryDeclaration<AddCommandDirective, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AddCommandDirective, "[kendoGridAddCommand]", never, {}, {}, never, ["*"], true, never>;
}