checkboxUI: checkboxUI

Description Usage Arguments

Description

Wrapper around shiny::checkboxInput

Usage

1
2
3
checkboxUI(id, label = paste("Please provide a label argument to the",
  "checkbox with id = ", id, ".", sep = ""), icon = NULL, width = NULL,
  custom_css = NULL)

Arguments

id

A unique string id for the checkbox. If your code is modularised, remember to wrap the id with the relevant session namespace function, e.g. checkboxUI(id = session$ns("someinput")).

label

A label for the checkbox.

width

The width of the entire shiny::checkbox UI element. Must be valid css (i.e. '10%' or '150px' will work).

custom_css

If provided, the checkbox is wrapped in a div styled by the custom_css input. For example, one could provide custom_css = "display: inline-block;" to display the checkbox inline.


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