Select for Angular and Ionic 2/3/4

Learn about Select

Advanced select component for single and multiple value selection. Provides a great alternative to the ion-select with enhanced UX.
Can be used as a component along with other mobiscroll form elements or as a directive on any ion-input or field.

Shipping with useful features:

  • Single or multiple value selection
  • Group header and list segmentation
  • On demand rendering for long lists
  • Built in support for invalids and un-selectable values
  • Filtering and autocomplete with type ahead
  • Circular wheels
  • Multiple theme support
  • Modal, popup and inline display support
  • RTL Support
  • Full localization


Interested in scroller controls? Other demos that could be useful:

Treelist Image scroller Scroller


Select demos available for other frameworks.

Viewing demos & code for

light
dark

Change the theme setting here

Select - Basic usage

Change demo
Basic usage
Angular Select scroller demo. Great for single value select in dropdowns. With native look & feel, improved UX and source. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll, MbscSelectOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    theme: '',
    lang: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {
    demo: number = 1;
    header: number = 1;
    nonform: number = 1;
    external: number = 1;

    items = [{
        value: 1,
        text: 'Atlanta'
    }, {
        value: 2,
        text: 'Berlin'
    }, {
        value: 3,
        text: 'Boston'
    }, {
        value: 4,
        text: 'Chicago'
    }, {
        value: 5,
        text: 'London'
    }, {
        value: 6,
        text: 'Los Angeles'
    }, {
        value: 7,
        text: 'New York'
    }, {
        value: 8,
        text: 'Paris'
    }, {
        value: 9,
        text: 'San Francisco'
    }];

    settings: MbscSelectOptions = {
        minWidth: 200
    };
    headerSettings: MbscSelectOptions = {
        minWidth: 200,
        headerText: 'Pick location'
    };
    nonFormSettings: MbscSelectOptions = {
        minWidth: 200,
        inputClass: 'demo-non-form'
    };
    externalSettings: MbscSelectOptions = {
        minWidth: 200,
        inputClass: 'demo-non-form',
        showOnTap: false
    };
}
<mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">The select can be used inside a mobiscroll form or on any element.</div>
    </div>
    <mbsc-form-group>
        <mbsc-form-group-title>Inside Mobiscroll Form</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="demo" [options]="settings" [data]="items">Select</mbsc-select>
        <mbsc-select [(ngModel)]="header" [options]="headerSettings" [data]="items">Header text</mbsc-select>
    </mbsc-form-group>
    <mbsc-form-group class="mbsc-padding">
        <p class="mbsc-thin">Use it on any element or non-mobiscroll form.</p>
    </mbsc-form-group>
</mbsc-form>
<div class="demo-container">
    <label for="demo-non-form">Select</label>
    <select id="demo-non-form" [(ngModel)]="nonForm" mbsc-select [mbsc-options]="nonFormSettings" [mbsc-data]="items" class="demo-non-form"></select>
    <label for="demo-external">External button</label>
    <div class="external-container">
        <select id="demo-external" [(ngModel)]="external" mbsc-select [mbsc-options]="externalSettings" [mbsc-data]="items" #externalSelect="mobiscroll" class="demo-non-form"></select>
        <button (click)="externalSelect.instance.show()" class="external-button">Show</button>
    </div>
</div>
.demo-non-form {
    color: initial;
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: arial, verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.demo-container {
    padding: 0 1em;
}

.external-container {
    display: flex;
}

.external-container button.external-button {
    font-weight: 400;
    padding: 10px;
    margin: 6px 0 12px 16px;
}

Select - Multiple select

Change demo
Multiple select
Angular Multiple select demo for product or category filtering. Visible selection with check mark in picker control. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll, MbscSelectOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    theme: '',
    lang: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})

export class AppComponent {
    select: any = [3, 4];
    group: any = [1, 2, 9, 196, 200, 1008, 1009];

    selectSettings: MbscSelectOptions = {
        select: 'multiple'
    };

    groupSettings: MbscSelectOptions = {
        select: 'multiple',
        label: 'Name',
        width: [50, 270],
        group: true,
        groupLabel: '&nbsp;'
    };
}
<mbsc-form>
    <mbsc-form-group>
        <mbsc-form-group-title>Multiple select</mbsc-form-group-title>
        <label>
            Multi-select
            <select [(ngModel)]="select" mbsc-select [mbsc-options]="selectSettings">
                <option value="1">Books</option>
                <option value="2">Movies, Music & Games</option>
                <option value="3">Electronics & Computers</option>
                <option value="4">Home, Garden & Tools</option>
                <option value="5">Health & Beauty</option>
                <option value="6">Toys, Kids & Baby</option>
                <option value="7">Clothing & Jewelry</option>
                <option value="8">Sports & Outdoors</option>
                <option value="9">Automotive & Industrial</option>
            </select>
        </label>
        <label>
            Group
            <select [(ngModel)]="group" mbsc-select [mbsc-options]="groupSettings">
                <optgroup label="A">
                    <option value="0">Adaline Shiver</option>
                    <option value="1" >Adella Cornell</option>
                    <option value="2" >Adolph Scriber</option>
                    <option value="3" disabled>Adrianna Merritt</option>
                    <option value="4" disabled>Adrianne Marotta</option>
                </optgroup>
                <optgroup label="B">
                    <option value="78">Barbara Mackay</option>
                    <option value="79">Barbera Phu</option>
                    <option value="80">Barbie Kaczorowski</option>
                    <option value="81">Barney Flurry</option>
                    <option value="82">Beatriz Remer</option>
                </optgroup>
                <!-- Showing partial data. Download full source. -->
            </select>
        </label>
    </mbsc-form-group>
</mbsc-form>

Select - Group options

Change demo
Group options
Angular Select with group options and headers rendered as a hierarchy. With native look & feel, improved UX and source code. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll, MbscSelectOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    theme: '',
    lang: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})

export class AppComponent {
    select: number = 1;
    wheel: number = 1;
    multiple: any = [1, 2, 9, 196, 200, 1008, 1009];

    wheelSettings: MbscSelectOptions = {
        group: true,
        width: [100, 170]
    };

    multipleSettings: MbscSelectOptions = {
        select: 'multiple',
        group: true,
        width: [60, 250],
    };
}
<mbsc-form>
    <mbsc-form-group>
        <mbsc-form-group-title>Group options</mbsc-form-group-title>
        <label>
            Group select
            <select [(ngModel)]="select" mbsc-select>
                <optgroup label="USA">
                    <option value="1">Atlanta</option>
                    <option value="2">Boston</option>
                    <option value="3">Chicago</option>
                    <option value="4">Los Angeles</option>
                    <option value="5">New York</option>
                    <option value="6">San Francisco</option>
                </optgroup>
                <optgroup label="UK">
                    <option value="7">Bath</option>
                    <option value="8">Bristol</option>
                    <option value="9">Cambridge</option>
                    <option value="10">London</option>
                    <option value="11">Leeds</option>
                    <option value="12">Manchester</option>
                    <option value="13">Newcastle</option>
                    <option value="14">Oxford</option>
                </optgroup>
                <optgroup label="China">
                    <option value="15">Beijing</option>
                    <option value="16">Chongqing</option>
                    <option value="17">Shanghai</option>
                    <option value="18">Shenzhen</option>
                    <option value="19">Tianjin</option>
                </optgroup>
            </select>
        </label>
        <label>
            Group wheel
            <select [(ngModel)]="wheel" mbsc-select [mbsc-options]="wheelSettings">
                <optgroup label="USA">
                    <option value="1">Atlanta</option>
                    <option value="2">Boston</option>
                    <option value="3">Chicago</option>
                    <option value="4">Los Angeles</option>
                    <option value="5">New York</option>
                    <option value="6">San Francisco</option>
                </optgroup>
                <optgroup label="UK">
                    <option value="7">Bath</option>
                    <option value="8">Bristol</option>
                    <option value="9">Cambridge</option>
                    <option value="10">London</option>
                    <option value="11">Leeds</option>
                    <option value="12">Manchester</option>
                    <option value="13">Newcastle</option>
                    <option value="14">Oxford</option>
                </optgroup>
                <optgroup label="China">
                    <option value="15">Beijing</option>
                    <option value="16">Chongqing</option>
                    <option value="17">Shanghai</option>
                    <option value="18">Shenzhen</option>
                    <option value="19">Tianjin</option>
                </optgroup>
            </select>
        </label>
        <label>
            Multiple select
            <select [(ngModel)]="multiple" mbsc-select [mbsc-options]="multipleSettings">
                <optgroup label="A">
                    <option value="0">Adaline Shiver</option>
                    <option value="1" >Adella Cornell</option>
                    <option value="2" >Adolph Scriber</option>
                    <option value="3" disabled>Adrianna Merritt</option>
                    <option value="4" disabled>Adrianne Marotta</option>
                </optgroup>
                <optgroup label="B">
                    <option value="78">Barbara Mackay</option>
                    <option value="79">Barbera Phu</option>
                    <option value="80">Barbie Kaczorowski</option>
                    <option value="81">Barney Flurry</option>
                    <option value="82">Beatriz Remer</option>
                </optgroup>
                <!-- Showing partial data. Download full source. -->
            </select>
        </label>
    </mbsc-form-group>
</mbsc-form>

Select - Multilevel hierarchy

Change demo
Multilevel hierarchy
Angular Hierarchical select example with local or remote data. Dynamically populate linked lists based on previous selection. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { ViewChild } from '@angular/core';
import { mobiscroll, MbscSelectOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    lang: '',
    theme: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {
    constructor() {
        this.regData = this.getData();
        this.divData = [this.emptyValue];
        this.subData = [this.emptyValue];
    }
    getData = (region, division) => {
        let arr,
            regions = [
                { value: 1, text: 'Northeast' },
                { value: 2, text: 'Midwest' },
                { value: 3, text: 'South' },
                { value: 4, text: 'West' }
            ],
            divisions = {
                1: [
                    { value: 1, text: 'New England' },
                    { value: 2, text: 'Mid-Atlantic' }
                ],
                2: [
                    { value: 3, text: 'East North Central' },
                    { value: 4, text: 'West North Central' }
                ],
                3: [
                    { value: 5, text: 'South Atlantic' },
                    { value: 6, text: 'East South Central' },
                    { value: 7, text: 'West South Central' }
                ],
                4: [
                    { value: 8, text: 'Mountain' },
                    { value: 9, text: 'Pacific' }
                ]
            },
            subdivisions = {
                1: [
                    { value: 1, text: 'Connecticut' },
                    { value: 2, text: 'Maine' },
                    { value: 3, text: 'Massachusetts' },
                    { value: 4, text: 'New Hampshire' },
                    { value: 5, text: 'Rhode Island' },
                    { value: 6, text: 'Vermont' }
                ],
                2: [
                    { value: 7, text: 'New Jersey' },
                    { value: 8, text: 'New York' },
                    { value: 9, text: 'Pennsylvania' }
                ],
                3: [
                    { value: 10, text: 'Illinois' },
                    { value: 11, text: 'Indiana' },
                    { value: 12, text: 'Michigan' },
                    { value: 13, text: 'Ohio' }
                ],
                4: [
                    { value: 14, text: 'Wisconsin' },
                    { value: 15, text: 'Iowa' },
                    { value: 16, text: 'Kansas' },
                    { value: 17, text: 'Minnesota' },
                    { value: 18, text: 'Missouri' },
                    { value: 19, text: 'Nebraska' },
                    { value: 20, text: 'North Dakota' },
                    { value: 21, text: 'South Dakota' }
                ],
                5: [
                    { value: 22, text: 'Delaware' },
                    { value: 23, text: 'Florida' },
                    { value: 24, text: 'Georgia' },
                    { value: 25, text: 'Maryland' },
                    { value: 26, text: 'North Carolina' },
                    { value: 27, text: 'South Carolina' },
                    { value: 28, text: 'Virginia' },
                    { value: 29, text: 'District of Columbia' },
                    { value: 30, text: 'West Virginia' }
                ],
                6: [
                    { value: 31, text: 'Alabama' },
                    { value: 32, text: 'Kentucky' },
                    { value: 33, text: 'Mississippi' },
                    { value: 34, text: 'Tennessee' }
                ],
                7: [
                    { value: 35, text: 'Arkansas' },
                    { value: 36, text: 'Louisiana' },
                    { value: 37, text: 'Oklahoma' },
                    { value: 38, text: 'Texas' }
                ],
                8: [
                    { value: 39, text: 'Arizona' },
                    { value: 40, text: 'Colorado' },
                    { value: 41, text: 'Idaho' },
                    { value: 42, text: 'Montana' },
                    { value: 43, text: 'Nevada' },
                    { value: 44, text: 'New Mexico' },
                    { value: 45, text: 'Utah' },
                    { value: 46, text: 'Wyoming' }
                ],
                9: [
                    { value: 47, text: 'Alaska' },
                    { value: 48, text: 'California' },
                    { value: 49, text: 'Hawaii' },
                    { value: 50, text: 'Oregon' },
                    { value: 51, text: 'Washington' }
                ]
            };

        if (division) {
            arr = subdivisions[division];
        } else if (region) {
            arr = divisions[region];
        } else {
            arr = regions;
        }

        arr = arr.slice(0);
        arr.unshift(this.emptyValue);

        return arr;
    }

    processResponse = (arr) => {
        arr.unshift(this.emptyValue);
        return arr;
    }

    @ViewChild('mbscReg') reg: MbscSelect;
    @ViewChild('mbscDiv') div: MbscSelect;
    @ViewChild('mbscSub') sub: MbscSelect;
    @ViewChild('mbscRemoteReg') remoteReg: MbscSelect;
    @ViewChild('mbscRemoteDiv') remoteDiv: MbscSelect;
    @ViewChild('mbscRemoteSub') remoteSub: MbscSelect;

    remoteRegData = {
        url: 'https://trial.mobiscroll.com/regions/',
        dataType: 'jsonp',
        processResponse: this.processResponse
    };

    remoteDivData: any = {
        url: 'https://trial.mobiscroll.com/divisions/',
        dataType: 'jsonp',
        processResponse: this.processResponse
    };

    remoteSubData: any = {
        url: 'https://trial.mobiscroll.com/subdivisions/',
        dataType: 'jsonp',
        processResponse: this.processResponse
    };

    emptyValue = { value: '', text: '', disabled: true };
    regVal: string = '';
    remoteRegVal: string = '';

    regSettings: MbscSelectOptions = {
        onSet: (ev, inst) => {
            this.div.instance.settings.invalid.length = 0;
            this.divVal = '';
            this.div.instance.enable();

            this.sub.instance.settings.invalid.length = 0;
            this.subVal = '';
            this.sub.instance.disable();

            setTimeout(() => {
                this.divData = this.getData(this.regVal);
                this.subData = [this.emptyValue];
            }, 100);
        }
    };

    divSettings: MbscSelectOptions = {
        disabled: true,
        onSet: (ev, inst) => {
            this.sub.instance.settings.invalid.length = 0;
            this.subVal = '';
            this.sub.instance.enable();

            setTimeout(() => {
                this.subData = this.getData(null, this.divVal);
            }, 100);
        }
    };

    subSettings: MbscSelectOptions = {
        disabled: true
    };

    remoteRegSettings: MbscSelectOptions = {
        data: this.remoteRegData,
        onSet: (ev, inst) => {
            this.remoteDiv.instance.settings.invalid.length = 0;
            this.remoteDiv.instance.settings.data.url = 'https://trial.mobiscroll.com/divisions/?reg=' + this.remoteRegVal;
            this.remoteDivVal = '';
            this.remoteDiv.instance.refresh();
            this.remoteDiv.instance.enable();

            this.remoteSub.instance.settings.invalid.length = 0;
            this.remoteSubVal = '';
            this.remoteSub.instance.disable();
        }
    };

    remoteDivSettings: MbscSelectOptions = {
        data: this.remoteDivData,
        disabled: true,
        onSet: (ev, inst) => {
            this.remoteSub.instance.settings.invalid.length = 0;
            this.remoteSub.instance.settings.data.url = 'https://trial.mobiscroll.com/subdivisions/?div=' + this.remoteDivVal;
            this.remoteSubVal = '';
            this.remoteSub.instance.refresh();
            this.remoteSub.instance.enable();
        }
    };

    remoteSubSettings: MbscSelectOptions = {
        data: this.remoteSubData,
        disabled: true
    };
}
<mbsc-form>
    <mbsc-form-group>
        <mbsc-form-group-title>Data object</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="regVal" [options]="regSettings" #mbscReg="mobiscroll" [data]="regData" placeholder="Please Select...">Region</mbsc-select>
        <mbsc-select [(ngModel)]="divVal" [options]="divSettings" #mbscDiv="mobiscroll" [data]="divData" placeholder="Please Select..." disabled>Division</mbsc-select>
        <mbsc-select [(ngModel)]="subVal" [options]="subSettings" #mbscSub="mobiscroll" [data]="subData" placeholder="Please Select..." disabled>Subdivision</mbsc-select>
    </mbsc-form-group>
    <mbsc-form-group>
        <mbsc-form-group-title>Remote data</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="remoteRegVal" [options]="remoteRegSettings" #mbscRemoteReg="mobiscroll" placeholder="Please Select...">Region</mbsc-select>
        <mbsc-select [(ngModel)]="remoteDivVal" [options]="remoteDivSettings" #mbscRemoteDiv="mobiscroll" placeholder="Please Select..." disabled>Division</mbsc-select>
        <mbsc-select [(ngModel)]="remoteSubVal" [options]="remoteSubSettings" #mbscRemoteSub="mobiscroll" placeholder="Please Select..." disabled>Subdivision</mbsc-select>
    </mbsc-form-group>
</mbsc-form>

Select - Data source

Change demo
Data source
Angular Select scroller demo with various data sources: native html select, data objects and remote json data sources. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll } from '@mobiscroll/angular';

mobiscroll.settings = {
    theme: '',
    lang: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {

    // Make sure to run it on a web server when trying this demo locally!

    demo: number = 1;
    data: number = 1;

    items = [{
        value: 1,
        text: 'Atlanta'
    }, {
        value: 2,
        text: 'Berlin'
    }, {
        value: 3,
        text: 'Boston'
    }, {
        value: 4,
        text: 'Chicago'
    }, {
        value: 5,
        text: 'London'
    }, {
        value: 6,
        text: 'Los Angeles'
    }, {
        value: 7,
        text: 'New York'
    }, {
        value: 8,
        text: 'Paris'
    }, {
        value: 9,
        text: 'San Francisco'
    }];

    remoteSettings: any = {
        data: {
            url: 'https://trial.mobiscroll.com/content/languages.json',
            type: 'json'
        },
        maxWidth: 300
    };

}
<mbsc-form>
    <mbsc-form-group>
        <div class="mbsc-align-center">
            <div class="mbsc-note mbsc-note-primary">The select scroller supports loading data from various sources.</div>
        </div>
        <mbsc-form-group-title>Data source</mbsc-form-group-title>
        <label> HTML
            <select [(ngModel)]="demo" mbsc-select>
                <option value="1">Atlanta</option>
                <option value="2">Berlin</option>
                <option value="3">Boston</option>
                <option value="4">Chicago</option>
                <option value="5">London</option>
                <option value="6">Los Angeles</option>
                <option value="7">New York</option>
                <option value="8">Paris</option>
                <option value="9">San Francisco</option>
            </select>
        </label>
        <mbsc-select [(ngModel)]="data" [data]="items">Data object</mbsc-select>
        <label>
            Remote data
            <input [(ngModel)]="remote" mbsc-select [mbsc-options]="remoteSettings" />
        </label>
    </mbsc-form-group>
</mbsc-form>

Select - Large datasource

Change demo
Large datasource
Angular Select demo for contact list with 1000+ records. Render on demand and smooth scrolling with alphabetical ordering. For Angular 2/4/5/6/7 and Ionic 2/3/4.
@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})

export class AppComponent {
    myData = [{
            value: 0,
            group: 'A',
            text: 'Adaline Shiver'
        }, {
            value: 1,
            group: 'A',
            text: 'Adella Cornell'
        }, {
            value: 2,
            group: 'A',
            text: 'Adolph Scriber'
        },
        {
            value: 78,
            group: 'B',
            text: 'Barbara Mackay'
        }, {
            value: 79,
            group: 'B',
            text: 'Barbera Phu'
        }, {
            value: 80,
            group: 'B',
            text: 'Barbie Kaczorowski'
        }, {
            value: 81,
            group: 'B',
            text: 'Barney Flurry'
        }
        // Showing partial data. Download full source.
    ];

    settings: any = {
        theme: '',
        lang: '',
        label: 'Name',
        width: [50, 270],
        group: true,
        groupLabel: 'A-Z'
    };
}
<input [(ngModel)]="myselect" mbsc-select [mbsc-options]="settings" [mbsc-data]="myData" placeholder="Please select..." />

Select - Setting values

Change demo
Setting values
Angular Select scroller demo with examples for programmatically setting values and defaults for single/multiple select. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll, MbscSelectOptions, MbscFormOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    theme: '',
    lang: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})

export class AppComponent {
    cities = [{
        value: 1,
        text: 'Atlanta'
    }, {
        value: 2,
        text: 'Berlin'
    }, {
        value: 3,
        text: 'Boston'
    }, {
        value: 4,
        text: 'Chicago'
    }, {
        value: 5,
        text: 'London'
    }, {
        value: 6,
        text: 'Los Angeles'
    }, {
        value: 7,
        text: 'New York'
    }, {
        value: 8,
        text: 'Paris'
    }, {
        value: 9,
        text: 'San Francisco'
    }];

    defaultVal: number = 6;

    setLondon(inst) {
        inst.setVal(5, true, true, false, 1000);
    };

    setParis(inst) {
        inst.setVal(8, true, true, false, 1000);
    };

    inlineSettings: MbscSelectOptions = {
        display: 'inline',
        showInput: false
    }

    customSettings: MbscSelectOptions = {
        select: 'multiple',
        buttons: [{
                text: 'Custom',
                handler: function (event, inst) {
                    inst.setVal([3, 4, 7], true, true, false, 1000);
                }
            },
            'set',
            'cancel'
        ]
    };

    autoSettings: MbscSelectOptions = {
        select: 'multiple',
        buttons: ['cancel']
    };
}
<mbsc-form>
    <mbsc-form-group>
        <mbsc-form-group-title>Controlling the default value</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="demo" [data]="cities">Default</mbsc-select>
        <mbsc-select [(ngModel)]="defaultVal" [data]="cities">Custom default</mbsc-select>
    </mbsc-form-group>
    <mbsc-form-group>
        <mbsc-form-group-title>Setting a custom value</mbsc-form-group-title>
        <div class="mbsc-btn-group-block">
            <mbsc-button (click)="setLondon(mbscSelect.instance)">London</mbsc-button>
            <mbsc-button (click)="setParis(mbscSelect.instance)">Paris</mbsc-button>
        </div>
        <mbsc-select [(ngModel)]="customVal" [data]="cities" #mbscSelect="mobiscroll" [options]="inlineSettings"></mbsc-select>
    </mbsc-form-group>
    <mbsc-form-group>
        <mbsc-form-group-title>Buttons API</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="custom" [data]="cities" [options]="customSettings">Custom</mbsc-select>
        <mbsc-select [(ngModel)]="auto" [data]="cities" [options]="autoSettings">Auto set</mbsc-select>
    </mbsc-form-group>
</mbsc-form>

Select - RTL support

Change demo
RTL support
Angular Select Right-to-left rendering demo with group options for quick navigation. With full RTL language support and source. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll, MbscSelectOptions, MbscFormOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    theme: '',
    lang: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})

export class AppComponent {
    names = [{
            value: 0,
            group: 'A',
            text: 'Adaline Shiver'
        }, {
            value: 1,
            group: 'A',
            text: 'Adella Cornell'
        }, {
            value: 2,
            group: 'A',
            text: 'Adolph Scriber'
        },
        {
            value: 78,
            group: 'B',
            text: 'Barbara Mackay'
        }, {
            value: 79,
            group: 'B',
            text: 'Barbera Phu'
        }, {
            value: 80,
            group: 'B',
            text: 'Barbie Kaczorowski'
        }, {
            value: 81,
            group: 'B',
            text: 'Barney Flurry'
        }
        // Showing partial data. Download full source.
    ];

    arabicSettings: MbscSelectOptions = {
        lang: 'ar',
        group: true
    };

    hebrewSettings: MbscSelectOptions = {
        lang: 'he',
        group: true
    };

    farsiSettings: MbscSelectOptions = {
        lang: 'fa',
        group: true
    };

    rtlSettings: MbscSelectOptions = {
        rtl: true,
        group: true
    };

    formSettings: MbscFormOptions = {
        rtl: true
    }
}
<mbsc-form [options]="formSettings">
    <mbsc-form-group>
        <mbsc-form-group-title>RTL enabled by default</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="arabic" [options]="arabicSettings" [data]="names">Arabic</mbsc-select>
        <mbsc-select [(ngModel)]="hebrew" [options]="hebrewSettings" [data]="names">Hebrew</mbsc-select>
        <mbsc-select [(ngModel)]="farsi" [options]="farsiSettings" [data]="names">Farsi</mbsc-select>
    </mbsc-form-group>
    <mbsc-form-group>
        <mbsc-form-group-title>Manually set RTL</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="rtl" [options]="rtlSettings" [data]="names">RTL</mbsc-select>
    </mbsc-form-group>
</mbsc-form>

Select - Autocomplete

Change demo
Autocomplete
Angular Select auto-complete demo with filtering and type-ahead functionality. Load values from markup or remote JSON service. For Angular 2/4/5/6/7 and Ionic 2/3/4.
let names = [{
            text: "Abigail Hodges",
            value: 1
        }, {
            text: "Adam Robertson",
            value: 2
        }, {
            text: "Adrian Mackay",
            value: 3
        }, {
            text: "Adrian Springer",
            value: 4
        }
        // Showing partial data. Download full source.
    ],
    myData = {
        url: 'https://trial.mobiscroll.com/airports/',
        remoteFilter: true,
        dataType: 'jsonp',
        processResponse: function (data) {
            var i,
                item,
                ret = [];

            if (data) {
                for (i = 0; i < data.length; i++) {
                    item = data[i];
                    ret.push({
                        value: item.code,
                        text: item.name,
                        html: '<div style="font-size:16px;line-height:18px;">' + item.name + '</div><div style="font-size:10px;line-height:12px;">' + item.location + ', ' + item.code + '</div>'
                    });
                }
            }

            return ret;
        }
    };

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {
    formSettings = {
        lang: '',
        theme: ''
    };

    names: any = names;
    myData: any = myData;

    localSettings = {
        filter: true
    };

    remoteSettings = {
        multiline: 2,
        height: 50,
        data: myData,
        filter: true
    };

    nonFormSettings: MbscSelectOptions = {
        multiline: 2,
        height: 50,
        data: myData,
        filter: true,
        inputClass: 'demo-non-form'
    };
}
<mbsc-form [options]="formSettings">
    <mbsc-form-group>
        <mbsc-form-group-title>Autocomplete</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="localData" [options]="localSettings" [data]="names" placeholder="Please Select...">Local data</mbsc-select>
        <mbsc-select [(ngModel)]="remoteDate" [options]="remoteSettings" placeholder="Please Select...">Remote data</mbsc-select>
    </mbsc-form-group>
    <mbsc-form-group class="mbsc-padding">
        <p class="mbsc-thin">Use it on any element or non-mobiscroll form.</p>
    </mbsc-form-group>
</mbsc-form>
<div class="demo-container">
    <label>Remote data</label>
    <select [(ngModel)]="nonForm" mbsc-select [mbsc-options]="nonFormSettings" placeholder="Please Select..."></select>
</div>
.demo-non-form {
    color: initial;
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: arial, verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.demo-container {
    padding: 0 1em;
}

Select - Multiline Select

Change demo
Multiline Select
Angular Select scroller style demo supporting long text rendered in multiple rows. With smooth scrolling and native look & feel. For Angular 2/4/5/6/7 and Ionic 2/3/4.
@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})

export class AppComponent {
    myData = [
        { 
            value: 1,
            text: 'Percentage of assets covered by systematic risk assessments (>99)'
        },
        { 
            value: 2,
            text: 'Number of personal vacancies in the security roles required for ISMS (Nil)'
        },
        { 
            value: 3,
            text: 'Time taken to grant, change and remove access privileges (Max. 2 hours)'
        },
        { 
            value: 4,
            text: 'Percentage of agents covered by an effective security awareness program (100%)'
        },
        { 
            value: 5,
            text: 'Number of security access violations (<2)'
        },
        { 
            value: 6,
        text: 'Number of emergency changes (<5)'},
        { 
            value: 7,
            text: 'Number of security incidents involving malicious code (Max. 2)'
        },
        { 
            value: 8,
            text: 'Number of systems where security requirements are not met (Max. 2)'
        },
        { 
            value: 9,
            text: 'Average turnaround time of incidents (Max. 2 hours)'
        },
        { 
            value: 10,
            text: 'Number of pending actions to meet response and recovery requirements (Max. 5)'
        },
        { 
            value: 11,
            text: 'Number of scheduled internal audits not done (Max. 1)'
        },
        { 
            value: 12,
            text: 'Number of scheduled penetration tests not done (Max. 1)'
        },
        { 
            value: 13,
            text: 'Number of overdue actions arising out of audit reports (Max. 5)'
        },
        { 
            value: 14,
            text: 'Number of changes not carried out as per change control procedure (Max. 1)'
        }
    ];

    settings: any = {
        theme: '',
        lang: '',
        multiline: 3,
        height: 50
    };
}
<input [(ngModel)]="myselect" mbsc-select [mbsc-options]="settings" [mbsc-data]="myData" placeholder="Please select..." />

Select - Country Picker

Change demo
Country Picker
Angular Country picker scroller select for mobile/tablet. Alphabetical ordering, jump to value and filtering is supported. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll, MbscSelectOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    theme: '',
    lang: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {
    select: string = "AF";
    filter: string = "AF";
    myselect: string = "AF";
    external: string = "AF";

    myData = [{
            value: 'AF',
            group: 'A',
            text: 'Afghanistan'
        },
        {
            value: 'AL',
            group: 'A',
            text: 'Albania'
        },
        {
            value: 'DZ',
            group: 'A',
            text: 'Algeria'
        },
        {
            value: 'AD',
            group: 'A',
            text: 'Andorra'
        },
        {
            value: 'AO',
            group: 'A',
            text: 'Angola'
        },
        {
            value: 'AR',
            group: 'A',
            text: 'Argentina'
        },
        {
            value: 'AM',
            group: 'A',
            text: 'Armenia'
        },
        {
            value: 'AW',
            group: 'A',
            text: 'Aruba'
        },
        {
            value: 'AU',
            group: 'A',
            text: 'Australia'
        },
        {
            value: 'AT',
            group: 'A',
            text: 'Austria'
        },
        {
            value: 'AZ',
            group: 'A',
            text: 'Azerbaijan'
        },
        {
            value: 'BH',
            group: 'B',
            text: 'Bahrain'
        },
        {
            value: 'BD',
            group: 'B',
            text: 'Bangladesh'
        },
        {
            value: 'BY',
            group: 'B',
            text: 'Belarus'
        },
        {
            value: 'BE',
            group: 'B',
            text: 'Belgium'
        },
        {
            value: 'BZ',
            group: 'B',
            text: 'Belize'
        },
        {
            value: 'BJ',
            group: 'B',
            text: 'Benin'
        },
        {
            value: 'BT',
            group: 'B',
            text: 'Bhutan'
        },
        {
            value: 'BO',
            group: 'B',
            text: 'Bolivia'
        },
        {
            value: 'BA',
            group: 'B',
            text: 'Bosnia And Herzegovina'
        },
        {
            value: 'BW',
            group: 'B',
            text: 'Botswana'
        },
        {
            value: 'BR',
            group: 'B',
            text: 'Brazil'
        },
        {
            value: 'IO',
            group: 'B',
            text: 'British Indian Ocean Territory'
        },
        {
            value: 'BN',
            group: 'B',
            text: 'Brunei Darussalam'
        },
        {
            value: 'BG',
            group: 'B',
            text: 'Bulgaria'
        },
        {
            value: 'BF',
            group: 'B',
            text: 'Burkina Faso'
        },
        {
            value: 'BI',
            group: 'B',
            text: 'Burundi'
        },
        // Showing partial data. Download full source.  
    ];

    selectSettings: MbscSelectOptions = {
        group: true,
        maxWidth: [40, 260],
        width: [40, 235]
    };
    filterSettings: MbscSelectOptions = {
        filter: true,
        group: {
            groupWheel: false,
            header: false
        }
    };
    myselectSettings: MbscSelectOptions = {
        group: true,
        maxWidth: [40, 260],
        width: [40, 235],
        inputClass: 'demo-non-form'
    };

    externalSettings: MbscSelectOptions = {
        group: true,
        maxWidth: [40, 260],
        width: [40, 235],
        inputClass: 'demo-non-form',
        showOnTap: false,
        showOnFocus: false
    };
}
<mbsc-form>
    <mbsc-form-group>
        <mbsc-form-group-title>Country picker</mbsc-form-group-title>
        <label>
            Group wheel
            <input [(ngModel)]="select" mbsc-select [mbsc-options]="selectSettings" [mbsc-data]="myData" />
        </label>
        <label>
            Filter
           <input [(ngModel)]="filter" mbsc-select [mbsc-options]="filterSettings" [mbsc-data]="myData" />
        </label>
    </mbsc-form-group>
    <mbsc-form-group class="mbsc-padding">
        <p class="mbsc-thin">Use it on any element or non-mobiscroll form.</p>
    </mbsc-form-group>
</mbsc-form>
<div class="demo-container">
    <label for="demo-non-form">Select</label>
    <input id="demo-non-form" [(ngModel)]="myselect" mbsc-select [mbsc-options]="myselectSettings" [mbsc-data]="myData" />
    <label for="demo-external">External button</label>
    <div class="external-container">
        <input id="demo-external" [(ngModel)]="external" mbsc-select [mbsc-options]="externalSettings" [mbsc-data]="myData" #externalSelect="mobiscroll" />
        <button (click)="externalSelect.instance.show()" class="external-button">Show</button>
    </div>
</div>
.demo-non-form {
    color: initial;
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: arial, verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.demo-container {
    padding: 0 1em;
}

.external-container {
    display: flex;
}

.external-container button.external-button {
    font-weight: 400;
    padding: 10px;
    margin: 6px 0 12px 16px;
}

Select - Event handlers

Change demo
Event handlers
Angular Select demo with event hooks for custom integration and functionality. For Angular 2/4/5/6/7 and Ionic 2/3/4.
Clear event log
EVENTS FIRED: 
@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {
    myData = [
        {
            value: 1,
            text: 'Atlanta'
        },{
            value: 2,
            text: 'Berlin'
        },{
            value: 3,
            text: 'Boston'
        },{
            value: 4,
            text: 'Chicago'
        },{
            value: 5,
            text: 'London'
        },{
            value: 6,
            text: 'Los Angeles'
        },{
            value: 7,
            text: 'New York'
        },{
            value: 8,
            text: 'Paris'
        },{
            value: 9,
            text: 'San Francisco'
        }
    ];
    
    settings: any = {
        theme: '',
        lang: '',
        placeholder: 'Please select..',
        filter: true,
        onInit: function (event, inst) {
            // Your custom event handler goes here
        },
        onMarkupReady: function (event, inst) {
            // Your custom event handler goes here
        },
        onBeforeShow: function (event, inst) {
            // Your custom event handler goes here
        },
        onPosition: function (event, inst) {
            // Your custom event handler goes here
        },
        onShow: function (event, inst) {
            // Your custom event handler goes here
        },
        onSet: function (event, inst) {
            // Your custom event handler goes here
        },
        onItemTap: function (event, inst) {
            // Your custom event handler goes here
        },
        onDestroy: function (event, inst) {
            // Your custom event handler goes here
        },
        onClose: function (event, inst) {
            // Your custom event handler goes here
        },
        onCancel: function (event, inst) {
            // Your custom event handler goes here
        },
        onBeforeClose: function (event, inst) {
            // Your custom event handler goes here
        },
        onClear: function (event, inst) {
            // Your custom event handler goes here
        },
        onFilter: function (event, inst) {
            // Your custom event handler goes here
        }
    };
}
<input [(ngModel)]="myselect" mbsc-select [mbsc-options]="settings" [mbsc-data]="myData" placeholder="Please select..." />

Select - Display modes

Change demo
Display modes
Angular Select mobile and desktop demo with top, bottom, popup, center, modal, bubble and inline embeddable display. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll } from '@mobiscroll/angular';

mobiscroll.settings = {
    lang: '',
    theme: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {
    select: number = 1;
    selectTop: number = 1;
    selectCenter: number = 1;
    selectBubble: number = 1;
    selectInline: number = 1;

    items = [{
        value: 1,
        text: 'Atlanta'
    }, {
        value: 2,
        text: 'Berlin'
    }, {
        value: 3,
        text: 'Boston'
    }, {
        value: 4,
        text: 'Chicago'
    }, {
        value: 5,
        text: 'London'
    }, {
        value: 6,
        text: 'Los Angeles'
    }, {
        value: 7,
        text: 'New York'
    }, {
        value: 8,
        text: 'Paris'
    }, {
        value: 9,
        text: 'San Francisco'
    }];

    selectSettings: any = {
        display: 'bottom'
    };
    selectTopSettings: any = {
        display: 'top'
    };
    selectCenterSettings: any = {
        display: 'center'
    };
    selectBubbleSettings: any = {
        display: 'bubble'
    };
    selectInlineSettings: any = {
        showInput: false,
        display: 'inline'
    };
}
<mbsc-form>
    <mbsc-form-group>
        <mbsc-form-group-title>Try different display modes</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="select" [options]="selectSettings" [data]="items">Bottom</mbsc-select>
        <mbsc-select [(ngModel)]="selectTop" [options]="selectTopSettings" [data]="items">Top</mbsc-select>
        <mbsc-select [(ngModel)]="selectCenter" [options]="selectCenterSettings" [data]="items">Center</mbsc-select>
        <mbsc-select [(ngModel)]="selectBubble" [options]="selectBubbleSettings" [data]="items">Bubble</mbsc-select>
    </mbsc-form-group>
    <mbsc-form-group class="mbsc-padding">
        <p class="mbsc-thin">With inline display you can embed the Select component in almost any markup or form.</p>
    </mbsc-form-group>
    <mbsc-form-group>
        <mbsc-form-group-title>Embedded select scroller</mbsc-form-group-title>
        <mbsc-select [(ngModel)]="selectInline" [options]="selectInlineSettings" [data]="items"></mbsc-select>
    </mbsc-form-group>
</mbsc-form>

Select - Responsive

Change demo
Responsive
Angular Select scroller dropdowns with responsive usage. Easily set how the component behaves across diff screen sizes. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll, MbscSelectOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    lang: '',
    theme: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {
    groupWheel = 1;
    group = 1;
    multi = [3, 4];
    city = 1;

    selectSettings: MbscSelectOptions = {
        select: 'multiple',
        responsive: this.getResposiveSetting()
    };

    remoteSettings: MbscSelectOptions = {
        display: 'center',
        responsive: this.getResposiveSetting(),
        multiline: 2,
        height: 50,
        data: {
            url: 'https://trial.mobiscroll.com/airports/',
            remoteFilter: true,
            dataType: 'jsonp',
            processResponse: function (data) {
                var i,
                    item,
                    ret = [];

                if (data) {
                    for (i = 0; i < data.length; i++) {
                        item = data[i];
                        ret.push({
                            value: item.code,
                            text: item.name,
                            html: '<div style="font-size:16px;line-height:18px;">' + item.name + '</div><div style="font-size:10px;line-height:12px;">' + item.location + ', ' + item.code + '</div>'
                        });
                    }
                }

                return ret;
            }
        },
        filter: true,
        placeholder: 'Please select'
    };

    getResposiveSetting() {
        return {
            small: {
                display: 'bubble'
            },
            medium: {
                touchUi: false
            }
        }
    }
}
<mbsc-form>

    <div class="mbsc-align-center">
        <mbsc-note color="primary">The Select component can be used on mobile and desktop. See desktop functionality below.</mbsc-note>
    </div>

    <div class="mbsc-grid">
        <div class="mbsc-row mbsc-justify-content-center">
            <div class="mbsc-col-sm-9 mbsc-col-md-7 mbsc-col-xl-5">
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Basic usage</mbsc-form-group-title>
                    <label>
                        Single select
                        <select [(ngModel)]="city" mbsc-select [responsive]="getResposiveSetting()" >
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                        Multi-select
                        <select [(ngModel)]="multi" mbsc-select [mbsc-options]="selectSettings">
                            <option value="1">Books</option>
                            <option value="2">Movies, Music & Games</option>
                            <option value="3">Electronics & Computers</option>
                            <option value="4">Home, Garden & Tools</option>
                            <option value="5">Health & Beauty</option>
                            <option value="6">Toys, Kids & Baby</option>
                            <option value="7">Clothing & Jewelry</option>
                            <option value="8">Sports & Outdoors</option>
                        </select>
                    </label>
                </mbsc-form-group>
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Group select & segmentation</mbsc-form-group-title>
                    <label>
                        Group select
                       <select [(ngModel)]="city" mbsc-select [responsive]="getResposiveSetting()" >
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                    <label>
                        Group wheel
                        <select [(ngModel)]="groupWheel" mbsc-select [responsive]="getResposiveSetting()" [group]="true" >
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                </mbsc-form-group>
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Filtering & autocomplete</mbsc-form-group-title>
                    <label>
                        <mbsc-select [options]="remoteSettings" placeholder="Please select...">Remote data</mbsc-select>
                    </label>
                </mbsc-form-group>
            </div>
        </div>
    </div>
</mbsc-form>

Select - Desktop

Change demo
Desktop
Angular Select dropdown example for desktop usage. Enjoy the same polished experience with cursor pointer interaction. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll, MbscSelectOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    lang: '',
    theme: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {

    anchored = 1;
    top = 1;
    bottom = 1;
    center = 1;
    citiy = 1;
    groupWheel = 1;
    group = 1;
    multi = [3, 4];
    city = 1;

    selectSettings: MbscSelectOptions = {
        select: 'multiple',
        touchUi: false
    };

    remoteSettings: MbscSelectOptions = {
        display: 'center',
        touchUi: false,
        multiline: 2,
        height: 50,
        data: {
            url: 'https://trial.mobiscroll.com/airports/',
            remoteFilter: true,
            dataType: 'jsonp',
            processResponse: function (data) {
                var i,
                    item,
                    ret = [];

                if (data) {
                    for (i = 0; i < data.length; i++) {
                        item = data[i];
                        ret.push({
                            value: item.code,
                            text: item.name,
                            html: '<div style="font-size:16px;line-height:18px;">' + item.name + '</div><div style="font-size:10px;line-height:12px;">' + item.location + ', ' + item.code + '</div>'
                        });
                    }
                }

                return ret;
            }
        },
        filter: true,
        placeholder: 'Please select'
    };

    setBtnSettings: MbscSelectOptions = {
        display: 'center',
        touchUi: false,
        buttons: ['set']
    };

    setCancelSettings: MbscSelectOptions = {
        display: 'center',
        touchUi: false,
        buttons: ['set', 'cancel']
    };
}
<mbsc-form>
    <div class="mbsc-align-center">
        <mbsc-note color="primary">The Select component can be used on mobile and desktop. See desktop functionality below.</mbsc-note>
    </div>

    <div class="mbsc-grid">
        <div class="mbsc-row mbsc-justify-content-center">
            <div class="mbsc-col-sm-9 mbsc-col-md-7 mbsc-col-xl-5">
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Basic usage</mbsc-form-group-title>
                    <label>
                        Single select
                        <select [(ngModel)]="city" mbsc-select [touchUi]="false" >
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                        Multi-select
                        <select [(ngModel)]="multi" mbsc-select [mbsc-options]="selectSettings">
                            <option value="1">Books</option>
                            <option value="2">Movies, Music & Games</option>
                            <option value="3">Electronics & Computers</option>
                            <option value="4">Home, Garden & Tools</option>
                            <option value="5">Health & Beauty</option>
                            <option value="6">Toys, Kids & Baby</option>
                            <option value="7">Clothing & Jewelry</option>
                            <option value="8">Sports & Outdoors</option>
                        </select>
                    </label>
                </mbsc-form-group>
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Pop-up positioning</mbsc-form-group-title>
                    <label>
                        Top
                        <select [(ngModel)]="top" mbsc-select [touchUi]="false" display="top">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                        Bottom
                        <select [(ngModel)]="bottom" mbsc-select [touchUi]="false" display="bottom">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                        Anchored
                        <select [(ngModel)]="anchored" mbsc-select [touchUi]="false" >
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                        Center
                        <select [(ngModel)]="center" mbsc-select [touchUi]="false" display="center">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                </mbsc-form-group>
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Group select & segmentation</mbsc-form-group-title>
                    <label>
                        Group select
                        <select [(ngModel)]="city" mbsc-select [touchUi]="false" >
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                    <label>
                        Group wheel
                        <select [(ngModel)]="groupWheel" mbsc-select [touchUi]="false" [group]="true" >
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                </mbsc-form-group>
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Filtering & autocomplete</mbsc-form-group-title>
                    <label>
                        <mbsc-select [options]="remoteSettings" placeholder="Please select...">Remote data</mbsc-select>
                    </label>
                </mbsc-form-group>
                <mbsc-form-group inset>
                    <mbsc-form-group-title>With buttons</mbsc-form-group-title>
                    <label>
                        Set button
                        <select [(ngModel)]="setBtn" mbsc-select [mbsc-options]="setBtnSettings" placeholder="Please select...">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                        Set/Cancel
                        <select [(ngModel)]="setCancel" mbsc-select [mbsc-options]="setCancelSettings" placeholder="Please select...">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                </mbsc-form-group>
            </div>
        </div>
    </div>
</mbsc-form>

Select - Theming capabilities

Change demo
Theming capabilities
Angular Select scroller with iOS, Material, Windows look & feel. Customize colors and styling with theme builder. For Angular 2/4/5/6/7 and Ionic 2/3/4.
import { mobiscroll, MbscSelectOptions } from '@mobiscroll/angular';

mobiscroll.settings = {
    theme: '',
    lang: ''
};

@Component({
    selector: 'demo-app',
    templateUrl: './app.component.html'
})
export class AppComponent {
    iosDemo: number;
    iosDarkDemo: number;
    iosDemo: number;
    iosDarkDemo: number;
    iosDemo: number;
    iosDarkDemo: number;
    mobiscrollDemo: number;
    mobiscrollDarkDemo: number;

    cities = [{
        value: 1,
        text: 'Atlanta'
    }, {
        value: 2,
        text: 'Berlin'
    }, {
        value: 3,
        text: 'Boston'
    }, {
        value: 4,
        text: 'Chicago'
    }, {
        value: 5,
        text: 'London'
    }, {
        value: 6,
        text: 'Los Angeles'
    }, {
        value: 7,
        text: 'New York'
    }, {
        value: 8,
        text: 'Paris'
    }, {
        value: 9,
        text: 'San Francisco'
    }];

    iosSettings: MbscSelectOptions = {
        theme: 'ios',
        display: 'center',
        touchUi: false,
        minWidth: 200
    };
    iosDarkSettings: MbscSelectOptions = {
        theme: 'ios-dark',
        display: 'center',
        touchUi: false,
        minWidth: 200
    };
    materialSettings: MbscSelectOptions = {
        theme: 'material',
        display: 'center',
        touchUi: false,
        minWidth: 200
    };
    materialDarkSettings: MbscSelectOptions = {
        theme: 'material-dark',
        display: 'center',
        touchUi: false,
        minWidth: 200
    };
    windowsSettings: MbscSelectOptions = {
        theme: 'windows',
        display: 'center',
        touchUi: false,
        minWidth: 200
    };
    windowsDarkSettings: MbscSelectOptions = {
        theme: 'windows-dark',
        display: 'center',
        touchUi: false,
        minWidth: 200
    };
    mobiscrollSettings: MbscSelectOptions = {
        theme: 'mobiscroll',
        display: 'center',
        touchUi: false,
        minWidth: 200
    };
    mobiscrollDarkSettings: MbscSelectOptions = {
        theme: 'mobiscroll-dark',
        display: 'center',
        touchUi: false,
        minWidth: 200
    };
}
<mbsc-form>
    <div class="mbsc-grid-fixed mbsc-grid-lg">
        <div class="mbsc-row">
            <div class="mbsc-col">
                <mbsc-form-group inset>
                    <mbsc-form-group-title>iOS Theme</mbsc-form-group-title>
                    <label>
                        Light
                        <input [(ngModel)]="iosDemo" mbsc-select [mbsc-options]="iosSettings" [mbsc-data]="cities" placeholder="Please Select..." />
                    </label>
                    <label>
                        Dark
                        <input [(ngModel)]="iosDarkDemo" mbsc-select [mbsc-options]="iosDarkSettings" [mbsc-data]="cities" placeholder="Please Select..." />
                    </label>
                </mbsc-form-group>
            </div>
            <div class="mbsc-col">
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Material Theme</mbsc-form-group-title>
                    <label>
                        Light
                        <input [(ngModel)]="materialDemo" mbsc-select [mbsc-options]="materialSettings" [mbsc-data]="cities" placeholder="Please Select..." />
                    </label>
                    <label>
                        Dark
                        <input [(ngModel)]="materialDarkDemo" mbsc-select [mbsc-options]="materialDarkSettings" [mbsc-data]="cities" placeholder="Please Select..." />
                    </label>
                </mbsc-form-group>
            </div>
        </div>
        <div class="mbsc-row">
            <div class="mbsc-col">
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Windows Theme</mbsc-form-group-title>
                    <label>
                        Light
                        <input [(ngModel)]="windowsDemo" mbsc-select [mbsc-options]="windowsSettings" [mbsc-data]="cities" placeholder="Please Select..." />
                    </label>
                    <label>
                        Dark
                        <input [(ngModel)]="windowsDarkDemo" mbsc-select [mbsc-options]="windowsDarkSettings" [mbsc-data]="cities" placeholder="Please Select..." />
                    </label>
                </mbsc-form-group>
            </div>
            <div class="mbsc-col">
                <mbsc-form-group inset>
                    <mbsc-form-group-title>Mobiscroll Theme</mbsc-form-group-title>
                    <label>
                        Light
                        <input [(ngModel)]="mobiscrollDemo" mbsc-select [mbsc-options]="mobiscrollSettings" [mbsc-data]="cities" placeholder="Please Select..." />
                    </label>
                    <label>
                        Dark
                        <input [(ngModel)]="mobiscrollDarkDemo" mbsc-select [mbsc-options]="mobiscrollDarkSettings" [mbsc-data]="cities" placeholder="Please Select..." />
                    </label>
                </mbsc-form-group>
            </div>
        </div>
    </div>
</mbsc-form>

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 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 2/4/5/6/7 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 2/4/5/6/7 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 or Ionic 2/3/4.

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

Do you need additional support seats?

The framework license comes with one support seat. ( +$50/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

Customize & try demos locally
You can download and use Mobiscroll for Free

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
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. HTML goes into the markup, TS into Typescript.

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve
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.

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

Extract the zip file and open the demo in your favorite browser. To install Mobiscroll in your project follow instructions from this page.


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

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 demos are using Babel's in-browser ES6 and JSX transformer. Extract the zip file and open the demo in your browser. To install Mobiscroll in your project follow instructions from this page.


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 6
Grid layout 7
Image 7
Inputs & fields 6
Listview 18
Measurement 10
Navigation 8
Number 8
Numpad 13
Option List 4
Popup 10
Range 19
Scroller 7
Scrollview 5
Select 16
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