iTwin / presentation

Monorepo for iTwin.js Presentation Library
https://www.itwinjs.org/presentation/
MIT License
4 stars 0 forks source link

`hierarchies`: Add ability to not auto-expand to filter targets when hierarchy is created with `filtering.paths` #673

Closed grigasp closed 1 month ago

grigasp commented 1 month ago

At the moment, whenever a hierarchy is created with filtering.paths attribute to filter the hierarchy, all filter targets are made visible by expanding their ancestors. We have a use case where filtering is done not because of user's input, but to make the hierarchy show only a subset of elements, and in this case we don't want the auto-expanding feature.

Note: we may need ability to specify whether to auto-expand or not per path.