@progress/kendo-angular-treeview
Version:
Kendo UI TreeView for Angular
30 lines (29 loc) • 1.26 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 { TreeItemFilterState } from "./drag-and-drop/models/tree-item-filter-state";
import { TreeViewFilterSettings } from "./treeview-filter-settings";
/**
* Represents the current filter state of the TreeView.
* Emitted by the [`filterStateChange`](slug:api_treeview_treeviewcomponent#filterstatechange) event.
*/
export interface FilterState {
/**
* The list of TreeView node wrappers containing metadata about the current filtered state.
* Useful for custom implementations of auto-expanding nodes triggered by filtering.
*/
nodes: TreeItemFilterState[];
/**
* The number of nodes that match the current filter term.
*/
matchCount: number;
/**
* The current filter term applied to the TreeView.
*/
term: string;
/**
* The filter settings used for the current filter operation.
*/
filterSettings: TreeViewFilterSettings;
}