Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shiny.express's panel_conditional() doesn't seem to be usable #981

Closed
Tracked by #969
cpsievert opened this issue Jan 8, 2024 · 0 comments · Fixed by #982
Closed
Tracked by #969

shiny.express's panel_conditional() doesn't seem to be usable #981

cpsievert opened this issue Jan 8, 2024 · 0 comments · Fixed by #982
Assignees
Labels

Comments

@cpsievert
Copy link
Collaborator

cpsievert commented Jan 8, 2024

I think the intention is for it to be used this way:

from shiny.express import ui

ui.input_radio_buttons("display", None, ["hidden", "shown"], inline=True)

with ui.panel_conditional(condition="input.display === 'shown'"):
    "Hidden content"

...but that results in error, since express treating condition as a keyword argument, when in reality, it is a positional arg.

TypeError: panel_conditional() got multiple values for argument 'condition'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant