Checkbox
checkbox.Rd
A checkbox.
Arguments
- ...
Any named properties.
- value
Initial value, only used with
checkbox_group()
.- checked
Whether the checkbox is checked.
- id
The id of the checkbox or group.
Details
See checkbox
Examples
checkbox(text = "Checkbox 1", id = "chk1")
#> <ui5-checkbox id="chk1" text="Checkbox 1"></ui5-checkbox>
checkbox_group(
"chkgroup",
checkbox(value = "chk2", text = "Checkbox 2", checked = TRUE),
checkbox(value = "chk3", text = "Checkbox 3")
)
#> <div class="ui5-checkbox-group" id="chkgroup">
#> <ui5-checkbox checked data-value="chk2" text="Checkbox 2"></ui5-checkbox>
#> <ui5-checkbox data-value="chk3" text="Checkbox 3"></ui5-checkbox>
#> </div>