skafy Posted September 13, 2018 Share Posted September 13, 2018 I'm wondering if I could create node without subnodes and would be able to expand this node without subnodes. Link to comment Share on other sites More sharing options...
Sherzod Posted September 13, 2018 Share Posted September 13, 2018 Hi, Sorry, can you please explain in more details ?! Link to comment Share on other sites More sharing options...
skafy Posted September 18, 2018 Author Share Posted September 18, 2018 OK. If you have node it is presentet as single entity. There is no + sign on left side of the node (for node expendsion), image in only for one node. If you fill that node with subnodes (chilldrens) then + sign is presented with this node (where we just add subnodes) and picture changes to "folder". So is it possible that you have this plus sign and folder image if there is no subnodes in the node. only one node, without childrens that is presentet as parent node. Link to comment Share on other sites More sharing options...
Sherzod Posted September 18, 2018 Share Posted September 18, 2018 Hi, Sorry, for what purpose do you want this ? Link to comment Share on other sites More sharing options...
skafy Posted September 18, 2018 Author Share Posted September 18, 2018 Because I would like to fill it on expand event. I would connect it to database and count something. Link to comment Share on other sites More sharing options...
Sherzod Posted September 18, 2018 Share Posted September 18, 2018 function store.nodebeforeappend(sender, node, eOpts) { if (node.data.id == "0") { node.data.leaf = false; } } Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now