@progress/kendo-angular-treeview
Version:
Kendo UI TreeView for Angular
36 lines (35 loc) • 1.52 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* Configures the auto-expansion behavior of nodes when filtering the TreeView.
*/
export interface FilterExpandSettings {
/**
* The maximum number of filter results that will be auto-expanded.
* If the number of results exceeds this value, the expanded state will be reverted according to the `expandedOnClear` setting.
* The default value of -1 allows any number of results to be auto-expanded.
* @default -1
*/
maxAutoExpandResults?: number;
/**
* Determines whether matching nodes expand to display their children.
* Only applicable in `"lenient"` filter mode.
* @default false
*/
expandMatches?: boolean;
/**
* Determines which nodes should remain expanded when the filter is cleared. The possible values are:
* * `"none"`—Collapse all nodes.
* * `"all"`—Expand all nodes.
* * `"initial"`—Restore the expanded state from before filtering.
* * `"unchanged"`—Leave the expanded state unchanged.
* @default "none"
*/
expandedOnClear?: "all" | "none" | "initial" | "unchanged";
/**
* @hidden
*/
enabled?: boolean;
}