checkboxUIs: checkboxUIs

Description Usage Arguments

Description

Create a tagList of checkboxes using the checkboxUI wrapper for shiny::checkboxInput.

Usage

1
2
checkboxUIs(ids, labels = NULL, icons = NULL, widths = NULL,
  custom_css = NULL)

Arguments

ids

String id for the checkboxes. If your code is modularised, remember to wrap the id with the relevant session namespace function, e.g. checkboxUIs(id = sapply(c("someinput", "anotherinput", session$ns))).

labels

Labels for the checkboxes.

widths

The widths of the checkboxes. Must be valid css (i.e. "10%" or "150px" will work; see shiny::validateCssUnit). To use the same width on all checkboxes, provide a single-text string or a vector with one text string. To use different widths for each checkbox, provide a vector of custom css text strings with one element per action button.

custom_css

If provided, the checkboxes are wrapped in divs each styled by the custom_css input. For example, when creating multiple checkboxes one could provide custom_css = "display: inline-block;" to display them inline. To use the same style on all checkboxes, provide a single-text string or single-element vector. To use different styles for each checkbox, provide a vector of custom css text strings with one element per checkbox.


kahaaga/shinymodules documentation built on May 6, 2019, 9:54 a.m.