The data payload type.
Clears any active filter, restoring all nodes.
Applies a structured CompiledFilter to the tree.
The expression is compiled into a single predicate once, which is
then applied to each node's data. Matching nodes and their
ancestors are kept. Pass an empty array (or null / undefined)
to clear the filter and show all nodes.
T.T object.
An in-memory tree datasource that supports filtering via a CompiledFilter.
When an expression is applied the datasource compiles it into a single predicate, re-derives its visible tree structure from the original data, and exposes only the matching nodes (plus their ancestors). The underlying tree is never mutated.
Example