Checkbox widget provides easy way to add custom checkbox to the user application and can be in any one of the two states, either checked or unchecked. When the user click on the checkbox it toggles the state.
The simple way to add checkbox widget to your application is as follows
The whole list of configuration parameters is available in CheckBoxCfg bean.
Checkbox widget labels can be aligned to "left", "right" and "top" depending on the user requirement. Also user can provide a css class via sclass property.
For more information please read the article on widget_bindings.
The whole list of bindable parameters are available in CheckBoxCfg bean.
Here the checkbox is bound to two properties of the data model, the state of the checkbox changes based on 'isCheckMe' property in the data model. And the checkbox will be enable or disabled based on 'enableMe' property in the data model.