@progress/kendo-angular-treeview
Version:
Kendo UI TreeView for Angular
42 lines (41 loc) • 1.59 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* Represents a hierarchical node in the TreeView filter state.
* Used as a lookup structure to persist information about the current node, its filter state, parent, and child nodes.
* Utilized in the [`filterStateChange`](slug:api_treeview_treeviewcomponent#filterstatechange) event.
*/
export interface TreeItemFilterState {
/**
* The data item associated with the node.
*/
dataItem: any;
/**
* The hierarchical index of the node.
*/
index: string;
/**
* The parent of the current node.
*/
parent: TreeItemFilterState;
/**
* The child nodes of the current node.
*/
children?: TreeItemFilterState[];
/**
* Indicates whether the node matches the current filter.
*/
isMatch?: boolean;
/**
* Determines whether the node is visible or hidden by the filter.
* A node can be visible even if it does not directly match the filter.
* For example, the node is visible if it is a parent of a matching node or a child of a matching node in `"lenient"` filter mode.
*/
visible: boolean;
/**
* Determines whether any child node matches the filter or contains matching nodes.
*/
containsMatches?: boolean;
}