@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.
35 lines (34 loc) • 1.28 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* The interface for the `editService` that you can set to the
* [editing directives]({% slug editing_directives_treelist %}#toc-custom-service) of the TreeList.
*/
export interface EditService {
/**
* Creates a new item.
* @param item The item to create.
* @param parent The parent item, if any.
* @param id The unique identifier, if any.
*/
create(item: any, parent?: any, id?: any): void;
/**
* Updates the items for an existing item.
* @param item The item to update.
*/
update(item: any): void;
/**
* Removes an existing item.
* @param item The item to remove.
* @param parent The parent item, if any.
*/
remove(item: any, parent?: any): void;
/**
* Sets new values to an item.
* @param target The item to update.
* @param source The values to assign.
*/
assignValues(target: any, source: any): void;
}