Angular-ui-tree expand specific nodes
- or -
Post a project like this2026
$$
- Posted:
- Proposals: 6
- Remote
- #2148979
- Awarded
Description
Experience Level: Intermediate
I am using the following package:
https://github.com/angular-ui-tree/angular-ui-tree
But I need it extended so that I can start the tree with specific nodes expanded and others collapsed based upon the existing toggle state.
Currently, when the user toggles the state, I am using AJAX to save the state of nodes in a PHP session array consisting of the node ids.
Then when I load the tree, I should be able to use these saved states to have the nodes collapsed or expanded based upon the session variables. It is this last part that I am having trouble with. I do not know how to access a node via id to expand or collapse it.
https://github.com/angular-ui-tree/angular-ui-tree
But I need it extended so that I can start the tree with specific nodes expanded and others collapsed based upon the existing toggle state.
Currently, when the user toggles the state, I am using AJAX to save the state of nodes in a PHP session array consisting of the node ids.
Then when I load the tree, I should be able to use these saved states to have the nodes collapsed or expanded based upon the session variables. It is this last part that I am having trouble with. I do not know how to access a node via id to expand or collapse it.
John P.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
100%
Last project
9 Oct 2018
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Please let me know if still available?
714078
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies