@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.74 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. You can apply this directive to any
* `button` element inside a [ToolbarTemplate]({% slug api_grid_commandcolumncomponent %}).
* When an associated button with the directive is clicked, the
* [add]({% slug api_grid_gridcomponent %}#toc-add) event is triggered
* ([see example]({% slug basics_editing_grid %})).
*
* @example
* ```html
* <kendo-grid>
* <ng-template kendoGridToolbarTemplate>
* <button kendoGridAddCommand>Add new</button>
* </ng-template>
* </kendo-grid>
* ```
*/
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>;
}