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.

Allow to reset selection

See original GitHub issue

I have a use case where when the user selects a tab, a certain view would show. then if the user reselects that tab that view would disappear, but I can’t find a way to deselect the tab or reset the selection.

I managed to handle this using this useful callback:

mainBar.onTabReselected = { tab ->
                when (tab?.id) {
           -> {
                         //  mainBar.resetSelection()   or   tab.deselect()
                   // other code

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

Dropperscommented, Jan 5, 2021

If I understand correctly you want a deselect() function which will deselect all tabs? Currently, this is not possible, when I have time I’ll look into implementing this, or you could make a pull request of course.

rgocalcommented, Jul 30, 2021

solved my problem by just manually adding library as a module

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reset select value to default - javascript - Stack Overflow
You can make use of the defaultSelected property of an option element: Contains the initial value of the selected HTML attribute, indicating whether...
Read more >
Clear Selection Allowed - DriveWorks Pro Help
The Clear Selection Allowed property controls if the data selected from the list control can be cleared by the user. ... The Clear...
Read more >
Solved: single Select reset - Microsoft Power BI Community
Solved: Hi there, I have a report based on RLS with two slicers one Department and second Jobs Users can see only jobs...
Read more >
How to reset select box after "selected" has been assign
Im trying to reset("selectedItem",0) on a dropbox that has had a "selected" attribute assigned to it.When I try to do the "selectedItem,0" ...
Read more >
Allow students to clear selection of multiple choice answers
To allow clearing of multiple choice selections, users will go into the Settings tab of the quiz and click on the toggle button...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found