@progress/kendo-angular-treeview
Version:
Kendo UI TreeView for Angular
42 lines (41 loc) • 1.54 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 { TreeItem } from './treeitem.interface';
/**
* Represents a node-tree lookup structure that stores information about the current node, its parent, and its children
* ([see example](slug:checkboxes_treeview#toc-modifying-the-checked-state)).
*/
export interface ItemLookup {
/**
* The current `TreeItem` instance.
*/
item: TreeItem;
/**
* The children of the current node.
*/
children?: TreeItem[];
/**
* The parent of the current node.
*/
parent?: ItemLookup;
}
/**
* Represents a node-tree lookup structure that stores information about the current node, its parent, and its children.
* Used in the [`checkedChange`](slug:api_treeview_treeviewcomponent#checkedchange) event of the TreeView ([see example](slug:checkboxes_treeview#toc-modifying-the-checked-state)).
*/
export interface TreeItemLookup {
/**
* The current `TreeItem` instance.
*/
item: TreeItem;
/**
* The lookup details for the parent of the current TreeView node.
*/
parent?: ItemLookup;
/**
* The lookup details for the children of the current TreeView node.
*/
children?: TreeItemLookup[];
}