question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Flyer53commented, Mar 18, 2020

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

0reactions
Flyer53commented, Mar 20, 2020

Sami, stay healthy and help the people as good as you can. All the rest can wait …

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found