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. Quote 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 ?! Quote 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. Quote 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 ? Quote 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. Quote 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; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.