[Feature Request] Methods to programmatically expand/collapse a list-group and custom id attribute value
See original GitHub issue- I think it would be nice to have methods to programmatically expand/collapse a list-group. You could of course do this by simply using Bootstraps
collapse()
method. But that would not change the state icons. - Additionally a custom
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 …
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Issues · chniter/bstreeview - GitHub
[Feature Request] Methods to programmatically expand/collapse a list-group and custom id attribute value enhancement New feature or request.
Read more >How can I assign an ID to a view programmatically?
Add an attribute of android:id="@+id/ somename " to your view. When your application is built ... Here, values/ids.xml defines a custom id :...
Read more >Expand-Collapse for Multiline Text columns in SharePoint
We can solve this issue by introducing Expand-Collapse Trick with jQuery. On clicking on the little Arrow that row will be expanded, then...
Read more >JavaScript · Bootstrap
Bring Bootstrap's components to life with over a dozen custom jQuery plugins. ... Due to how HTML5 defines its semantics, the autofocus HTML...
Read more >JavaScript - Boosted · Orange
Don't use data attributes from multiple plugins on the same element. For example, a button cannot both have a tooltip and toggle a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 Boostrapcollapse()
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.jsNote: 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
Sami, stay healthy and help the people as good as you can. All the rest can wait …