Open Flyer53 opened 4 years ago
Hi Stefan,
Thanks a lot for your contributions. Yes, we need to implement many methods like expand/collapse, select/unselect, disable/enable, check/uncheck... I am waiting for feedback to do this, but i have many ideas on my mind. Let's talk about code now: I put a Node [] property in the plugin to be able to enrich it with other options and methods later. In my opinion it is necessary to keep the Node [] collection up to date following actions (expand / collape, check / uncheck) to be able to recover the state of a node easily.
If you are available, we can organize ourselves to establish the list of features to be implemented by priority.
For my part I am not available full time but I try to free myself 2-3 hours a day.
Thanks
Hi Sami,
Well, right now I can't say how much time I'll have to spend on this. And please consider that I'm not a professional programmer ... it's more a hobby to keep my brain working 😏, so my abilities are a bit limited.
However, I updated my example code with a bstreeCollapse()
method as single method to show/hide. Less code and more like the Boostrap collapse()
method. Maybe you want to take a look at it once more and tell me whether it's worth a pull request.
Live demo: https://alpha.jspanel.de/lib/bstreeview/src/index.html
Updated js: https://github.com/Flyer53/bstreeview/blob/master/src/js/bstreeview.js
Note: I never used it myself so far, but maybe the Projects board is a good place to organize updates/changes/ideas and so on.
Regards, Stefan
Hi Sami,
I played around a bit more and added a method bstreeItemDisable()
to disable/enable a list-group-item.
Live demo: https://alpha.jspanel.de/lib/bstreeview/src/index.html
Updated js: https://github.com/Flyer53/bstreeview/blob/master/src/js/bstreeview.js
Hi Steafan,
I will take a look to your implemented feature later. I am so busy these days and trying to work from home (because of Coronavirus). These days are a more bit difficult then usaually.
Thanks for your help Stefan!
Sami, stay healthy and help the people as good as you can. All the rest can wait ...
collapse()
method. But that would not change the state icons.id
attribute value for list-items where needed would help to identify the proper list-item to call the methods on.I prepared a demo how this could work: https://alpha.jspanel.de/lib/bstreeview/src/index.html If you find some time to take a look at my example please let me know what you think ...