A checkbox component based on Bootstrap framework.
Enable Bootstrap-checkbox via JavaScript:
Property | Type | Default |
---|---|---|
baseGroupCls | null | string | 'btn-group' |
baseCls | null | string | 'btn' |
groupCls | null | string | null |
cls | null | string | null |
offCls | null | string | 'btn-default' |
onCls | null | string | 'btn-default' |
offActiveCls | null | string | 'btn-danger' |
onActiveCls | null | string | 'btn-success' |
offLabel | null | string | 'No' |
onLabel | null | string | 'Yes' |
disabledCursor | null | string | 'not-allowed' |
html | boolean | false |
iconCls | null | string | 'glyphicon' |
offIconCls | null | string | null |
onIconCls | null | string | null |
offTitle | null | string | null |
onTitle | null | string | null |
reverse | boolean | false |
switchAlways | boolean | false |
toggleKeyCodes | array | [13, 32] |
warningMessage | string | 'Please do not use bootstrap-checkbox element in label element.' |
To trigger an action use a change event.
Or call it, by an specific id member of the DOM.
Change checkbox checked value.
Disable checkbox.