@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.62 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 { 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]({% slug api_grid_commandcolumncomponent %}).
* When you click the button with this directive, the [`add`]({% slug api_grid_gridcomponent %}#toc-add) event is triggered
* ([see example]({% slug basics_editing_grid %})).
*
* @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>;
}