checkboxInput: Checkbox Input Control

Description Usage Arguments Value See Also Examples

View source: R/input-checkbox.R

Description

Create a checkbox that can be used to specify logical values.

Usage

1
checkboxInput(inputId, label, value = FALSE)

Arguments

inputId

Input variable to assign the control's value to.

label

Display label for the control.

value

Initial value (TRUE or FALSE).

Value

A checkbox control that can be added to a UI definition.

See Also

checkboxGroupInput, updateCheckboxInput

Other input.elements: animationOptions, sliderInput; checkboxGroupInput; dateInput; dateRangeInput; numericInput; radioButtons; selectInput, selectizeInput; submitButton; textInput

Examples

1
checkboxInput("outliers", "Show outliers", FALSE)

Example output

You probably do not want to attach this package (with library() or require()). Instead, you should use shinybootstrap2::withBootstrap2(). You can hide this message with suppressPackageStartupMessages().
<label class="checkbox" for="outliers">
  <input id="outliers" type="checkbox"/>
  <span>Show outliers</span>
</label>

shinybootstrap2 documentation built on May 2, 2019, 4:05 p.m.