Declined
Last Updated: 13 Sep 2023 14:17 by ADMIN
Created by: Dan
Comments: 9
Category: Checkbox
Type: Feature Request
2
I need the Checkbox Component to have a readonly configuration/ API method to prevent the user from editing it but still send its value to server.
Declined
Last Updated: 02 Nov 2022 15:20 by ADMIN

### Bug report

The CheckBox TagHelper does not render the attribute "required" and a custom class.

### Reproduction of the problem

The CheckBox TagHelper definition:

<kendo-checkbox id="KendoCheckboxRequiredByHtml" class="form-check-input" required>
</kendo-checkbox>

It generates the following markup:

<input id="KendoCheckboxRequiredByHtml" name="KendoCheckboxRequiredByHtml" type="checkbox" value="true" data-role="checkbox" class="k-checkbox k-checkbox-md k-rounded-md">
<input name="KendoCheckboxRequiredByHtml" type="hidden" value="false">

A sample for reproduction is attached.

### Expected/desired behavior

The attribute "required" and the class "form-check-input" to be set to the generated input element.

### Environment

* **Kendo UI version: 2022.2.510
* **Browser: [all]