@progress/kendo-angular-listview
Version:
Kendo UI Angular listview component
38 lines (37 loc) • 1.85 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 edit command button directive of the Kendo UI ListView for Angular.
* Provides the `edit` command of the ListView. You can apply this directive to any `button`
* element inside a [`EditTemplateDirective`]({% slug api_listview_edittemplatedirective %}) template.
* When you click an associated button with the directive, the
* [`edit`]({% slug api_listview_listviewcomponent %}#toc-edit) event
* triggers ([see example]({% slug editing_listview %})).
*
* @example
* ```html
* <kendo-listview>
* <ng-template kendoListViewEditTemplate>
* <button kendoListViewEditCommand class="k-primary">Edit</button>
* </ng-template>
* </kendo-listview>
* ```
*/
export declare class EditCommandDirective extends Button {
private editService;
private elementRef;
/**
* @hidden
*/
clickHandler(e: any): void;
constructor(editService: EditService, element: ElementRef, renderer: Renderer, localization: LocalizationService, ngZone: NgZone);
static ɵfac: i0.ɵɵFactoryDeclaration<EditCommandDirective, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<EditCommandDirective, "[kendoListViewEditCommand]", never, {}, {}, never, ["*"], true, never>;
}