-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ajax loaded data parent detection #12
Comments
I am not sure I understand the issue. Can you share a gist / fiddle to demonstrate the problem? |
the tree updates as excepted, but the problem is what icon (leaf/expandable) to show i 'm talking about making a node with expandable icon even without any children loaded |
got it. will have to think how to support such a use case. |
implemented a solution isLeaf method in options - which allows you to select if a node is a leaf or a branch. The method accepts a node and returns boolean. |
in a tree that nodes are loaded asynchronously (e.g. by clicking on parent node),
every node initially is considered as leaf, as it has no children loaded.
as a workaround, it can be another property like is_parent, to indicate parent nodes from leafs.
The text was updated successfully, but these errors were encountered: