This module allows you to create Bootstrap styled checkboxes.
Create a composable Bootstrap custom styled checkbox
Checkbox.custom
[ Checkbox.id "myCustomChk"
, Checkbox.checked True
, Checkbox.onCheck MyCheckMsg
]
"My Custom Checkbox"Create a label for a checkbox when using advancedCheckbox or advancedCustom
Checkbox.label [ style "font-size" "24px" ] [ div [ class "disclaimer" ] [ text "My disclaimer" ] ]Create a checkbox element with customized label
Checkbox.advancedCheckbox
[ Checkbox.id "myChk"
, Checkbox.checked True
, Checkbox.onCheck MyCheckMsg
]
(Checkbox.label [ class "mylabelclass" ] [ text "Hello" ])Create a custom bootstrap styled checkbox element with customized label
Checkbox.advancedCustom
[ Checkbox.id "myChk"
, Checkbox.checked True
, Checkbox.onCheck MyCheckMsg
]
(Checkbox.label [ class "mylabelclass" ] [ text "Hello" ])Opaque type representing a Checkbox label.
Set the id for the checkbox. Will automatically set the for attribute for the label
NOTE: You have to use this for custom checkboxes.
Option to set the indeterminate property of a checkbox
Note: A checkbox can't be both indeterminate and checked, so if you set both the last one provided in the list of options to the checkbox function "wins".
Use this function to handle any Html.Attribute option you wish for your select
Opaque type representing valid customization options for a checkbox
Create a checkbox element