CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

Feature: possibility to set scrollContainer after tree init. #904

Open liesahead opened 3 years ago

liesahead commented 3 years ago

Describe any alternatives/workarounds you're currently using

Currently I'm using @ViewChild and vanilla js to scroll container to tree node when it is selected. The scrollable container is initialized together with tree, so scrollContainer option can't be set on init. Maybe scrollContainer option could be an expression? Or maybe separate setting (expression)? Or maybe it can be set through treeComponent.options.scrollContainer or something like that.

The second problem is that TreeNode doesn't provide elementRef which is really needed as we don't have tree-node elements in our html.

If accepted, I would be willing to submit a PR for this feature

[ ] Yes (Assistance will be provided if you need help to submit a pull request) [ X] No

liesahead commented 2 years ago

Any news? Seems like library was abandoned.