checkboxInput

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).

Checkbox Input Control

Value

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

Description

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

Examples

checkboxInput("outliers", "Show outliers", FALSE)
<label class="checkbox" for="outliers"> <input id="outliers" type="checkbox"/> <span>Show outliers</span> </label>

See also

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