Allow to reset selection
See original GitHub issueI 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) {
R.id.fontSize -> {
seekBarView.reverseVisibility()
// mainBar.resetSelection() or tab.deselect()
}
// other code
}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top 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 >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
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.solved my problem by just manually adding library as a module