Toggle & Radio for Angular and Ionic 2/3/4

Learn more

Use the switch and checkbox components to let people turn options on/off. Besides the toggle functionality create radio-button lists for mutually exclusive value selection.

Enjoy platform specific look & feel on the web, desktop and mobile.

Refined UX for toggle and radio elements with the following features:

  • Checkbox & checklist styling
  • Switch and toggle styling
  • Radio-button styling
  • Color presets with diabled styling
  • Icon support
  • Value and description support


Forms demos available for other frameworks.

Viewing demos & code for

light
dark

Change the theme setting here

Toggle & Radio - Checkbox

Change demo
Checkbox
Angular Checkbox and checklist demo and styling with or without description text. Supports disabled styling. For Angular 2/4/5/6/7/8 and Ionic 2/3/4.
import { Component } from '@angular/core';
import { MbscFormOptions } from '@mobiscroll/angular';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html'
})
export class AppComponent {
    checkboxModel = [{
            value: true,
            text: 'Option 1'
        },
        {
            value: false,
            text: 'Option 2'
        },
        {
            value: false,
            text: 'Option 3'
        },
        {
            value: true,
            text: 'Option 4'
        }
    ];

    selOptions: Array < string > ;

    formSettings: MbscFormOptions = {
        lang: '',
        theme: ''
    };

    constructor() {
        this.checkboxChange();
    }

    checkboxColor = true;

    checkboxChange() {
        const selOptions = [];
        const checkboxes = this.checkboxModel;

        for (let i = 0; i < checkboxes.length; ++i) {
            if (checkboxes[i].value) {
                selOptions.push(' ' + checkboxes[i].text);
            }
        }
        this.selOptions = selOptions;
    }
}
<mbsc-form [options]="formSettings">
    <mbsc-form-group>
        <mbsc-form-group-title>Checkbox</mbsc-form-group-title>
        <mbsc-checkbox [(ngModel)]="checkboxModel[0].value" (change)="checkboxChange()">Option 1<span class="mbsc-desc">Checked checkbox</span></mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkboxModel[1].value" (change)="checkboxChange()">Option 2<span class="mbsc-desc">Empty checkbox</span></mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkboxModel[2].value" (change)="checkboxChange()" [disabled]="true">Option 3<span class="mbsc-desc">Disabled checkbox</span></mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkboxModel[3].value" (change)="checkboxChange()" [disabled]="true">Option 4<span class="mbsc-desc">Disabled and checked checkbox</span></mbsc-checkbox>
    </mbsc-form-group>
    <div class="mbsc-padding">
        {{selOptions}} selected
    </div>
    <mbsc-form-group>
        <mbsc-form-group-title>Checkbox colors</mbsc-form-group-title>
        <mbsc-checkbox [(ngModel)]="checkboxColor" color="primary">Primary</mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkboxColor" color="secondary">Secondary</mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkboxColor" color="success">success</mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkboxColor" color="danger">danger</mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkboxColor" color="warning">warning</mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkboxColor" color="info">info</mbsc-checkbox>
    </mbsc-form-group>
</mbsc-form>
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule, HttpClientJsonpModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MbscModule } from '@mobiscroll/angular';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    MbscModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    HttpClientJsonpModule
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }

Toggle & Radio - Switch

Change demo
Switch
Angular Switch demo and styling with our without description. Use it instead of checkbox. Supporting disabled styling. For Angular 2/4/5/6/7/8 and Ionic 2/3/4.
import { Component } from '@angular/core';
import { MbscFormOptions } from '@mobiscroll/angular';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html'
})
export class AppComponent {
    switch1 = false;
    switch2 = true;
    switch3 = false;
    switch4 = true;

    formSettings: MbscFormOptions = {
        lang: '',
        theme: ''
    };
}
<mbsc-form [options]="formSettings">
    <mbsc-form-group>
        <mbsc-form-group-title>Switch</mbsc-form-group-title>
        <mbsc-switch [(ngModel)]="switch1"> Switch Off
            <span class="mbsc-desc">This is description for Switch</span>
        </mbsc-switch>
        <mbsc-switch [(ngModel)]="switch2"> Switch On
            <span class="mbsc-desc">This is description for Switch</span>
        </mbsc-switch>
        <mbsc-switch [(ngModel)]="switch3" [disabled]="true"> Disabled Switch Off
            <span class="mbsc-desc">This is description for Switch</span>
        </mbsc-switch>
        <mbsc-switch [(ngModel)]="switch4" [disabled]="true"> Disabled Switch On
            <span class="mbsc-desc">This is description for Switch</span>
        </mbsc-switch>
    </mbsc-form-group>
    <mbsc-form-group>
        <mbsc-form-group-title>Switch colors</mbsc-form-group-title>
        <mbsc-switch [(ngModel)]="switch4" color="primary">
            Primary
        </mbsc-switch>
        <mbsc-switch [(ngModel)]="switch4" color="secondary">
            Secondary
        </mbsc-switch>
        <mbsc-switch [(ngModel)]="switch4" color="success">
            Success
        </mbsc-switch>
        <mbsc-switch [(ngModel)]="switch4" color="danger">
            Danger
        </mbsc-switch>
        <mbsc-switch [(ngModel)]="switch4" color="warning">
            Warning
        </mbsc-switch>
        <mbsc-switch [(ngModel)]="switch4" color="info">
            Info
        </mbsc-switch>
    </mbsc-form-group>
</mbsc-form>
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule, HttpClientJsonpModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MbscModule } from '@mobiscroll/angular';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    MbscModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    HttpClientJsonpModule
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }

Toggle & Radio - Radio buttons

Change demo
Radio buttons
Angular Radio button demo for single select option lists. Use it with or without description, supporting disabled styling. For Angular 2/4/5/6/7/8 and Ionic 2/3/4.
import { Component } from '@angular/core';
import { MbscFormOptions } from '@mobiscroll/angular';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html'
})
export class AppComponent {
    myRadio = 'option1';
    colorRadio = 'opt2';

    formSettings: MbscFormOptions = {
        lang: '',
        theme: ''
    };
}
<mbsc-form [options]="formSettings">
    <mbsc-form-group>
        <mbsc-form-group-title>Radio buttons</mbsc-form-group-title>
        <mbsc-radio-group [(ngModel)]="myRadio">
            <mbsc-radio value="option1">Radio Option 1
                <span class="mbsc-desc">This is description for radio 1</span>
            </mbsc-radio>
            <mbsc-radio value="option2">Radio Option 2
                <span class="mbsc-desc">This is description for radio 2</span></mbsc-radio>
            <mbsc-radio value="option3">Radio Option 3</mbsc-radio>
            <mbsc-radio [disabled]="true">Disabled</mbsc-radio>
        </mbsc-radio-group>
    </mbsc-form-group>
    <mbsc-form-group>
        <mbsc-form-group-title>Radio button colors</mbsc-form-group-title>
        <mbsc-radio-group [(ngModel)]="colorRadio" color="danger">
            <mbsc-radio value="opt1">
                Danger Option 1
            </mbsc-radio>
            <mbsc-radio value="opt2">
                Danger Option 2
            </mbsc-radio>
        </mbsc-radio-group>
    </mbsc-form-group>
</mbsc-form>
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule, HttpClientJsonpModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MbscModule } from '@mobiscroll/angular';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    MbscModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    HttpClientJsonpModule
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }

Toggle & Radio - Checklist

Change demo
Checklist
Angular Checklist demo with icon and description. Grouping and multiple color presets are supported. For Angular 2/4/5/6/7/8 and Ionic 2/3/4.
import { Component } from '@angular/core';
import { MbscFormOptions } from '@mobiscroll/angular';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html'
})
export class AppComponent {
    checkbox1 = true;
    checkbox2 = true;
    checkbox3 = false;
    checkbox4 = false;
    checkbox5 = true;
    checkbox6 = true;
    checkbox7 = true;
    checkbox8 = true;
    checkbox9 = false;
    checkbox10 = false;

    formSettings: MbscFormOptions = {
        lang: '',
        theme: ''
    };
}
<mbsc-form class="md-food-cl" [options]="formSettings">
    <mbsc-form-group>
        <mbsc-form-group-title>Category</mbsc-form-group-title>
        <mbsc-checkbox [(ngModel)]="checkbox1">
            <span class="mbsc-label"> <span class="micons icon-starter md-food-ic"> </span>starter</span>
        </mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkbox2">
            <span class="mbsc-label"> <span class="micons icon-main md-food-ic"> </span>main</span>
        </mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkbox3">
            <span class="mbsc-label"> <span class="micons icon-dessert md-food-ic"> </span>dessert</span>
        </mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkbox4">
            <span class="mbsc-label"> <span class="micons icon-snack md-food-ic"> </span>snack</span>
        </mbsc-checkbox>
    </mbsc-form-group>
    <mbsc-form-group>
        <mbsc-form-group-title>Main Ingredient</mbsc-form-group-title>
        <mbsc-checkbox [(ngModel)]="checkbox5">
            <span class="mbsc-label"> <span class="micons icon-poultry md-food-ic"> </span>poultry</span>
        </mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkbox6">
            <span class="mbsc-label"> <span class="micons icon-beef md-food-ic"> </span>beef</span>
        </mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkbox7">
            <span class="mbsc-label"> <span class="micons icon-pork md-food-ic"> </span>pork</span>
        </mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkbox8">
            <span class="mbsc-label"> <span class="micons icon-seafood md-food-ic"> </span>seafood</span>
        </mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkbox9">
            <span class="mbsc-label"> <span class="micons icon-vegetarian md-food-ic"> </span>vegetarian</span>
        </mbsc-checkbox>
        <mbsc-checkbox [(ngModel)]="checkbox10">
            <span class="mbsc-label"> <span class="micons icon-vegan md-food-ic"> </span>vegan</span>
        </mbsc-checkbox>
    </mbsc-form-group>
</mbsc-form>
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule, HttpClientJsonpModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MbscModule } from '@mobiscroll/angular';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    MbscModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    HttpClientJsonpModule
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }

Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.

Component license


Purchase component licenses if you are looking for specific funcionality.

Total


All features will be included with the license.

Buy component license

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for Angular & Ionic $595


Use Javascript when building with plain and simple JS. Use jQuery when you have jQuery already included or if you are building with jQuery Mobile. Use AngularJS when building with Angular 1.x or Ionic 1. Use Angular when building with Angular 2/4/5/6/7/8 or Ionic 2/3/4. Use it when you are building your app or website with React.


Buy framework license
See other licensing options

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for Angular $595


  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Framework license


Select the development framework you are using. Get all 36 components with the license.

Mobiscroll for Javascript
Mobiscroll for jQuery
Mobiscroll for React
Mobiscroll for Angular
Mobiscroll for Angular JS
  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Select the framework you are interested in

Javascript
jQuery
Angular
Angular JS
React

Use Javascript when building with plain and simple JS.

Use jQuery when you have jQuery already included or if you are building with jQuery Mobile.

Use AngularJS when building with Angular 1.x or Ionic 1.

Use Angular when building with Angular 2/4/5/6/7/8 or Ionic 2/3/4.

Use it when you are building your app or website with React.

Do you need additional support seats?

The license comes with one support seat. ( +$100/seat )

Add the source code?

Price
Buy now
Customize & try demos locally
Sign in or start your free trial

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Email address

Customize & try this demo locally
Sign in or start your free trial

We have to set you up with a trial for this to run 👍

Email address

Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Ionic project

Copy command
$ mobiscroll config ionic
$ mobiscroll config ionic --lite

You will be prompted to log in with your mobiscroll account. Set your password here

Create an Ionic 3 & Mobiscroll starter with the CLI:

$ mobiscroll start ionic myStarter

Run this command for Ionic 4 & Mobiscroll starter:

$ mobiscroll start ionic-angular myStarter

Step 3.Copy the code into your app.

Copy TS
Copy HTML
Copy CSS
Copy Module

Step 4.Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve

And voilà, everything should be running smoothly.

Customize & try demos locally
How would you like to do it?
Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Angular project

Copy command
$ mobiscroll config angular
$ mobiscroll config angular --lite

You will be prompted to log in with your mobiscroll account. Set your password here

Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.

Copy TS
Copy HTML
Copy CSS
Copy Module

Step 4.Run ng serve in the root folder of your app 🎉

Copy command
$ ng serve

And voilà, everything should be running smoothly.

Thanks for downloading
Try and customize the app locally

Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ionic serve

Let us know if we can help and enjoy!

Change your password
Need to update your password? Enter and hit the button below

You are setting a password for the account

New Password Required Enter at least 6 characters
Change your password
Need to update your password? Enter and hit the button below

Your password has been changed!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

Please extract the zip file and simply open the demos in your favorite browser. For instructions on how to install Mobiscroll in your project follow this guide.


Let us know if we can help and enjoy!

Thanks for downloading
Customize demos locally

Please extract the zip file and run the project like any Angular CLI app. Make sure to have the Angular CLI installed.

For installation and usage, extract the zip file and open a terminal window and follow these steps.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ng serve --open

Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The easiest way to get started is to follow the installation steps and by grabbing the code directly from the demo page. Let us know if we can help and enjoy!

You'll find a fully functional Kitchen-sink Ionic app in the zip file.

Thanks for downloading
Customize demos locally

The demos are using Babel's in-browser ES6 and JSX transformer.

Please extract the zip file and open the demos in your browser. For instructions on how to install Mobiscroll in your project follow this guide.


Let us know if we can help and enjoy!

Demos
Alerts & notifications
Alert Notifications Note
Components
Alerts & notifications 3
Buttons 4
Calendar 27
Cards 14
Collapsible 3
Color 10
Date & Time 20
Event Calendar 25
Forms 13
Grid layout 7
Image 7
Inputs & fields 6
Listview 18
Measurement 10
Navigation 8
Number 8
Numpad 14
Option List 4
Popup 10
Range 19
Scroller 7
Scrollview 5
Select 18
Slider & progress 4
Styling 6
Timer 5
Timespan 6
Toggle & Radio 4
Treelist 7
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos