@progress/kendo-angular-treeview
Version:
Kendo UI TreeView for Angular
41 lines (40 loc) • 1.58 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 which persists information about the current node and about its parent and children nodes ([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 which persists information about the current node and about its parent and children nodes.
* Used in the [`checkedChange`]({% slug api_treeview_treeviewcomponent %}#toc-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[];
}