ui.update_sidebar

ui.update_sidebar(id, *, show=None, session=None)

Update a sidebar's visibility.

Set a sidebar state during an active Shiny user session.

Parameters

id : str

The id of the sidebar to toggle.

show : Optional[bool] = None

The desired visible state of the sidebar, where True opens the sidebar and False closes the sidebar (if not already in that state).

session : Optional[Session] = None

A Shiny session object (the default should almost always be used).

See Also

Examples

Loading...