Angular-tree-component: how to preselect a child based on api on initial load

Created on 5 Jul 2017  路  1Comment  路  Source: CirclonGroup/angular-tree-component

If we need to preselect some child value and the tree-component shows it as highlighted/selected one , what options do we have in this package to handle this requirement ?

Most helpful comment

Hi,
you can use the API to locate the node and then call methods on it
like treeModel.getNodeById(10).setActiveAndVisible()

>All comments

Hi,
you can use the API to locate the node and then call methods on it
like treeModel.getNodeById(10).setActiveAndVisible()

Was this page helpful?
0 / 5 - 0 ratings

Related issues

filipemansano picture filipemansano  路  5Comments

anoop-chauhan picture anoop-chauhan  路  3Comments

olastor picture olastor  路  5Comments

nicolae536 picture nicolae536  路  5Comments

Shadowlauch picture Shadowlauch  路  5Comments