Label
If the CheckBoxGroup widget is bound to an array of strings, those will be used as both value and label of the respective radio button. If the widget is bound to array of objects, the label option could be used to specify the label content.
Set the Label text
To customize the text of the label, use the label
option.
<ul id="checkboxgroup"></ul>
<script>
$("#checkboxgroup").kendoCheckBoxGroup({
items: [ {
value: "one",
label: "Standard delivery"
},{
value: "two",
label: "Fast delivery"
},{
value: "three",
label: "Express delivery"
}],
});
</script>
Configure the Label Position
The labels of all checkboxes in the CheckBoxGroup could be rendered before or after each checkbox. Use the labelPosition
configuration option to set the position of the label.
<ul id="checkboxgroup"></ul>
<script>
$("#checkboxgroup").kendoCheckBoxGroup({
items: [ "Blue", "Green", "Red" ],
labelPosition: "before"
});
</script>