@progress/kendo-angular-treeview
Version:
Kendo UI TreeView for Angular
22 lines (21 loc) • 1.22 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 { TreeItemAddRemoveArgs } from './treeitem-add-remove-args';
/**
* Specifies the handlers called on drag-and-drop [`addItem`](slug:api_treeview_treeviewcomponent#additem)
* and [`removeItem`](slug:api_treeview_treeviewcomponent#removeitem) events.
*
* Implement this interface to handle the addition and removal of items during drag-and-drop operations in the TreeView.
*/
export interface EditService {
/**
* Called when an item is added via drag-and-drop. Represents the event handler of the [`addItem`](slug:api_treeview_treeviewcomponent#additem) event.
*/
add: (args: TreeItemAddRemoveArgs) => void;
/**
* Called when an item is removed via drag-and-drop. Represents the event handler of the [`removeItem`](slug:api_treeview_treeviewcomponent#removeitem) event.
*/
remove: (args: TreeItemAddRemoveArgs) => void;
}