You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Shiny Core, you can create an app with this layout using the following code:
from shiny import App, ui
ui = ui.page_fluid(ui.navset_card_tab(
ui.nav_panel("A", "Panel A content"),
ui.nav_panel("B", "Panel B content"),
title="Card with navbar",
sidebar=ui.sidebar(
ui.input_select("data", "Data", ("A", "B", "C"))
),
))
def server(input):
pass
app = App(ui, server)
But when I try it in shiny.express using the following code it doesn't work
from shiny.express import ui
ui.page_opts(fillable=True)
with ui.navset_card_tab(title="Card with navbar"):
with ui.sidebar():
ui.input_select("data", "Data", ("A", "B", "C"))
with ui.nav_panel("A"):
"Panel A content"
with ui.nav_panel("B"):
"Panel B content"
The text was updated successfully, but these errors were encountered:
cpsievert
changed the title
navset_card_tab with same sidebar in shiny.express
[express]: how to put a sidebar in a navset_card_tab() context manager?
Jul 9, 2024
With Shiny Core, you can create an app with this layout using the following code:
But when I try it in shiny.express using the following code it doesn't work
The text was updated successfully, but these errors were encountered: