CheckBoxGroup
Example
Razor
<kendo-checkboxgroup>
<kendo-checkboxgroup-items></kendo-checkboxgroup-items>
</kendo-checkboxgroup>
ChildTags
Tag Name | Details |
---|---|
kendo-checkboxgroup-items | CheckBoxGroupItemsTagHelper |
Attributes
Attribute | Type | Description |
---|---|---|
name | String | Sets the name of the component. |
bind-to | IList<IInputGroupItem> | Defines an array of configuration objects to be rendered as checkboxes. |
for | ModelExpression | An expression to be evaluated against the current model. |
deferred | Boolean | Suppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method. |
is-in-client-template | Boolean | When placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute. |
as-module | Boolean | |
enabled | Boolean | Sets the enabled state of all checkboxes in the CheckBoxGroup. |
has-client-component | Boolean | |
input-name | String | The name attribute to be used for the checkbox inputs. If omitted, the id of the wrapper element will be used. |
input-rounded | Rounded | Sets a value controlling the border radius of the input. |
input-size | ComponentSize | Sets a value controlling the size of the input. |
label-position | CheckBoxGroupLabelPosition | Specifies the label position according to its input for all items in the widget. Accepts "before" and "after". |
layout | CheckBoxGroupLayout | Specifies whether the checkbox inputs will be rendered one below the other ("vertical") or on the same line ("horizontal"). |
on-change | String | Fires when checking or unchecking a checkbox in the widget through user interaction. |
on-focus | String | Fires when a checkbox in the CheckBoxGroup is focused through user interaction. |
on-select | String | Fires when a checkbox input is clicked to be selected through user interaction. If prevented, the clicked input will not be checked/unchecked. |
sanitize-id | Boolean | |
script-attributes | IDictionary<String,Object> | |
value | IEnumerable<String> | The selected (checked) checkbox values. Will also be used as a CheckBoxGroup widget value. |