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
Could input_switch() be made to work with Shiny bookmarking? This would allow users to 'save' the state of the component in the app, which is the normal behaviour for Shiny's own components. Note that the same behaviour is true of input_dark_mode() as well.
Here's a reprex with the input_switch component, as well as shiny::checkboxInput() for comparison:
Both components are off by default. If you turn them both on and then click the bookmark button, the URL will be appended with ?_inputs_&inputswitch=true&checkbox=true as expected.
But when you visit that URL, the input switch is still off, whereas the checkbox's state has been respected:
Could
input_switch()
be made to work with Shiny bookmarking? This would allow users to 'save' the state of the component in the app, which is the normal behaviour for Shiny's own components. Note that the same behaviour is true ofinput_dark_mode()
as well.Here's a reprex with the
input_switch
component, as well asshiny::checkboxInput()
for comparison:Both components are off by default. If you turn them both on and then click the bookmark button, the URL will be appended with
?_inputs_&inputswitch=true&checkbox=true
as expected.But when you visit that URL, the input switch is still off, whereas the checkbox's state has been respected:
I couldn't find another issue or PR that matched this one. I couldn't see a reference in the docs to bookmarking. I see that
input_switch()
's lifecycle stage 'experimental', so perhaps this functionality isn't planned until the component exits this phase.The text was updated successfully, but these errors were encountered: