@progress/kendo-angular-listview
Version:
Kendo UI Angular listview component
37 lines (36 loc) • 1.81 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 { LocalizationService } from '@progress/kendo-angular-l10n';
import { EditService } from '../edit.service';
import * as i0 from "@angular/core";
/**
* Represents the add command button directive of the Kendo UI ListView for Angular.
* Provides the command for adding a new item to the ListView. You can apply this directive to any
* `button` element inside a [`HeaderTemplate`]({% slug api_listview_headertemplatedirective %}).
* When you click an associated button with the directive, the
* [`add`]({% slug api_listview_listviewcomponent %}#toc-add) event triggers
* ([see example]({% slug editing_listview %})).
*
* @example
* ```html
* <kendo-listview>
* <ng-template kendoListViewHeaderTemplate>
* <button kendoListViewAddCommand>Add new</button>
* </ng-template>
* </kendo-listview>
* ```
*/
export declare class AddCommandDirective extends Button {
private editService;
/**
* @hidden
*/
clickHandler(e: any): void;
constructor(editService: EditService, element: ElementRef, renderer: Renderer, localization: LocalizationService, ngZone: NgZone);
static ɵfac: i0.ɵɵFactoryDeclaration<AddCommandDirective, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AddCommandDirective, "[kendoListViewAddCommand]", never, {}, {}, never, ["*"], true, never>;
}