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.

image info

html
<CDBInput type="checkbox"></CDBInput>

CDBCheckbox

image info

html
<CDBCheckbox class="mt-5"></CDBCheckbox>

Disabled state

Simply add the disabled boolean attribute to CDBCheckbox

image info

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.

NameTypeDefaultDescriptionExample
classStringAdds custom classesclass="myClass"
disableBooleanfalseDisables Checkbox componentdisabled=true