Switch

Switch

Angular Bootstrap Switch is a simple component used for activating one of two predefined options. Commonly used as an on/off button.

It's mostly used in a number of various forms since they are dead simple to use and cut the time one needs to fill all the inputs.

Examples

Switch example.

image info

html
<CDBSwitch></CDBSwitch>
<CDBSwitch [checked]=true></CDBSwitch>

API

Here in this section you will find information about required modules and available inputs, outputs, methods and events of this component.

Contrast Switch Bootstrap Modules used

import {SwitchModule } from 'cdbangular';

API Reference: Contrast Switch Inputs

The table below shows the possible input of the Switch component.

NameTypeDefaultDescriptionExample
checkedBooleanfalseSets the initial state of switch to ON[checked]=true