Skip to content

checkboxGroupInput: Adding "columns" control #3779

@EricKrantz

Description

@EricKrantz

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
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions