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

checkboxGroupInput: Adding "columns" control #3779

Open
EricKrantz opened this issue Feb 10, 2023 · 1 comment
Open

checkboxGroupInput: Adding "columns" control #3779

EricKrantz opened this issue Feb 10, 2023 · 1 comment

Comments

@EricKrantz
Copy link

When the number of checkboxes grows large, the user has to scroll down the page to see them all. There is a complicated (to me) workaround on StackOverflow using css and HTML (https://stackoverflow.com/questions/29738975/how-to-align-a-group-of-checkboxgroupinput-in-r-shiny). Adding a column control would reduce the amount of css and HTML.

Of course, columns would be ignored if inline = TRUE.

Something like this (added in last row):

checkboxGroupInput(
  inputId,
  label,
  choices = NULL,
  selected = NULL,
  inline = FALSE,
  width = NULL,
  choiceNames = NULL,
  choiceValues = NULL,
  columns = 1
)
@cpsievert
Copy link
Collaborator

FWIW, we're planning on putting a more scalable version into the {bslib} package. It's very much a work-in-progress that likely won't be ready for at least a few weeks, but if you're keen to try it out: rstudio/bslib#484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants