DevExtreme React - Overview
The CheckBox is a small box, which when selected by the end user, shows that a particular feature has been enabled or a specific option has been chosen.
The following code adds the CheckBox to your page.
jQuery
HTML
JavaScript
<div id="checkBoxContainer"></div>
$(function() { $("#checkBoxContainer").dxCheckBox({ text: "Check me", value: undefined }); });
Angular
HTML
TypeScript
<dx-check-box text="Check me" [(value)]="checkBoxValue"> </dx-check-box>
import { DxCheckBoxModule } from "devextreme-angular"; // ... export class AppComponent { checkBoxValue: boolean; } @NgModule({ imports: [ // ... DxCheckBoxModule ], // ... })
The CheckBox widget can have the following states: checked (the value option is true), unchecked (value is false), undetermined (value is undefined).
See Also
- Configure a Widget: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
- CheckBox - Handle the Value Change Event
- CheckBox - Keyboard Support
- CheckBox API Reference
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.