Similar to drop-down checkbox input in shiny I was looking for the option to create a checkboxInput()
with two clickable columns such that that if the user needs to group by "X" then "X" is clicked if it wasn't marked as selected. Example:
While I could do this:
checkboxInput("select", "Selected variables", c("A", "B", "C"))
checkboxInput("group", "Grouping variables", c("A", "B", "C"))
I would prefer this:
checkboxInputDouble("vars", "Variables",
select = c("A", "B", "C"),
group = c("A", "B", "C"),
select_2 = c("A", "B")
group_2 = c("B")
)