Skip to content
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

[json_data] empty children array not rendered as leaf #23

Closed
bmesuere opened this issue May 27, 2011 · 1 comment
Closed

[json_data] empty children array not rendered as leaf #23

bmesuere opened this issue May 27, 2011 · 1 comment

Comments

@bmesuere
Copy link

When using the json_data plugin, a node with an empty array of children is not rendered as a leaf.

@vakata
Copy link
Owner

vakata commented Jul 11, 2011

Just do not pass anything (or a "falsy" value) for "children".

Empty array won't work - older versions of jstree used empty arrays to mark a node as having children, that are not yet loaded, this is why those nodes are shown as closed.

@vakata vakata closed this as completed Jul 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants