La case à cocher permet à l’utilisateur de sélectionner ou désélectionner une seule option. Elle est utilisée pour effectuer un choix binaire.

checkboxInput_dsfr(inputId, label, value = FALSE)

Arguments

inputId

id de l'input avec indexation

label

id de l'input sans indexation

value

TRUE (coché) ou FALSE (non coché)

Value

html

See also

checkboxInput() pour en savoir plus sur la fonction Shiny originelle.

Examples

checkboxInput_dsfr(
  inputId = 'test', label = 'test', value = FALSE)
#> <div class="form-group shiny-input-container">
#>   <div class="fr-checkbox-group">
#>     <input type="checkbox" id="test"/>
#>     <label class="fr-label" id="test-label" for="test">
#>       <span>test</span>
#>     </label>
#>   </div>
#> </div>
checkboxInput_dsfr(
  inputId = 'test', label = 'test', value = TRUE
)
#> <div class="form-group shiny-input-container">
#>   <div class="fr-checkbox-group">
#>     <input type="checkbox" id="test" checked="checked"/>
#>     <label class="fr-label" id="test-label" for="test">
#>       <span>test</span>
#>     </label>
#>   </div>
#> </div>