checkboxInput

checkboxInput(inputId, label, value = FALSE)

Arguments

inputId The input slot that will be used to access the value.
label Display label for the control, or NULL for no label.
value Initial value (TRUE or FALSE).

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)
<div class="form-group shiny-input-container"> <div class="checkbox"> <label> <input id="outliers" type="checkbox"/> <span>Show outliers</span> </label> </div> </div>

See also

checkboxGroupInput, updateCheckboxInput

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