Set the selection of a toggle button group from the server
Source:R/forms-controls.R
update_bs_toggle_buttons.RdDrives a bs_radio_button_input() or bs_checkbox_button_input(). Pass
character(0) to clear a checkbox group.
Usage
update_bs_toggle_buttons(
id,
selected = NULL,
session = shiny::getDefaultReactiveDomain()
)Examples
if (interactive()) update_bs_toggle_buttons("size", selected = "l")