posit-dev / posit-dev/py-shiny
ui.panel_conditional for tabs
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 135
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 21
Description
Hi, I was wondering if there is a way to apply conditional statements to tabs (ui.navset_tab, ui.nav). I am trying to make certain items to appear/disappear based on the selection of certain tabs. I know that we can use the ui.panel_conditional function for inputs, but it seems like it doesn't work for tabs as far as I know. I am open to any other suggestions to approach this methodology that I am trying to take outside of using conditional statements. Thank you!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported behavior using ui.panel_conditional with ui.navset_tab and ui.nav, starting by checking whether tab visibility responds to the selected tab. Done means there is a documented or implemented way to show and hide tab items based on the current tab selection, with the proposed behavior confirmed in a minimal example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100