CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)

Home Page:https://angular2-tree.readme.io/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: possibility to set scrollContainer after tree init.

liesahead opened this issue · comments

commented

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

commented

Any news? Seems like library was abandoned.