posit-dev / py-shiny

Shiny for Python
https://shiny.posit.co/py/
MIT License
1.31k stars 79 forks source link

Implement dynamic navs #89

Open cpsievert opened 2 years ago

cpsievert commented 2 years ago

i.e., nav_insert(), nav_remove(), nav_hide(), nav_show()

harrycorsearch commented 8 months ago

Please can this be prioritized. It would be extremely useful.

gadenbuie commented 1 month ago

As pointed out on Discord -- https://discord.com/channels/1109483223987277844/1292832159383552020 -- it seems that trying to use ui.insert_ui() to add nav panels will throw

NotImplementedError: nav() items must appear within navset_() container.
nav() items must appear within navset_() container.
kikaDev404 commented 1 month ago

Please implement this feature. This will be super helpful for use to control the UI dynamically. As pointed out in discord, currently it is throwing out error when I try to add the panel based on user access level.