Checkbox
Checkbox
Angular Bootstrap Checkbox is a component used for allowing a user to make multiple choices. Broadly used in the forms and surveys.
Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.
Examples
Default Checkbox example.
html
<CDBInput type="checkbox"></CDBInput>
CDBCheckbox
html
<CDBCheckbox class="mt-5"></CDBCheckbox>
Disabled state
Simply add the disabled boolean attribute to CDBCheckbox
html
<CDBCheckbox disabled="true"></CDBCheckbox>
API
Here in this section you will find information about required modules and available inputs, outputs, methods and events of this component.
Contrast Checkbox Bootstrap Modules used
import {CheckboxModule } from 'cdbangular';
API Reference: Contrast Checkbox Bootstrap Inputs
The table below shows the possible input of the Checkbox component.
| Name | Type | Default | Description | Example |
|---|---|---|---|---|
| class | String | Adds custom classes | class="myClass" | |
| disable | Boolean | false | Disables Checkbox component | disabled=true |