@progress/kendo-angular-treelist
Version:
Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.
39 lines (38 loc) • 1.61 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 { EditService } from './edit.service';
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
import * as i0 from "@angular/core";
/**
* Represents the command for adding a new item to the TreeList.
* You can apply this directive to any `kendo-toolbar-button` element inside a
* ToolbarComponent used in the TreeList.
*
* When the user clicks the toolbar button that is associated with the directive, the
* [add]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered.
*
* @example
* ```html-no-run
* <kendo-grid>
* <kendo-toolbar>
* <kendo-toolbar-button text="Add new" kendoTreeListAddTool></kendo-toolbar-button>
* </kendo-toolbar>
* </kendo-grid>
* ```
*/
export declare class AddCommandToolbarDirective {
private editService;
private host;
private clickSub;
constructor(editService: EditService, host: ToolBarButtonComponent);
ngOnInit(): void;
ngOnDestroy(): void;
/**
* @hidden
*/
onClick(e: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AddCommandToolbarDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<AddCommandToolbarDirective, "[kendoTreeListAddTool]", never, {}, {}, never, never, true, never>;
}