Option List - Settings

Choose demo
// Use the settings object to change the theme
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#demo').mobiscroll().optionlist({
        lang: '',
        theme: '',
        onItemTap: function (event, inst) {
            var item = $(event.target);
            mobiscroll.toast({
                message: item.text() + (item.hasClass('mbsc-ms-item-sel') ? ' ON' : ' OFF')
            });
        }
    });

    $('.md-notifications').mobiscroll().listview({
        enhance: true,
        stages: [{
            percent: -30,
            icon: 'remove',
            text: 'dismiss',
            action: function (event, inst) {
                inst.remove(event.target);
                return false;
            }
        }, {
            percent: 30,
            icon: 'remove',
            text: 'dismiss',
            action: function (event, inst) {
                inst.remove(event.target);
                return false;
            }
        }],
    });

});
<ul id="demo" style="display:none;">
    <li data-selected="true" data-icon="connection">Wi-Fi</li>
    <li data-icon="ion-bluetooth">Bluetooth</li>
    <li data-icon="location">Location</li>
    <li data-icon="fa-rotate-left"><span>Screen<br/>rotation</span></li>
    <li data-selected="true" data-icon="volume-medium">Sound</li>
    <li data-icon="download">Data</li>
    <li data-icon="foundation-minus-circle"><span>Blocking<br/>mode</span></li>
    <li data-icon="airplane"><span>Airplane<br />mode</span></li>
    <li data-selected="true" data-icon="fa-leaf"><span>Power<br/>saving</span></li>
    <li data-icon="alarm2">Alarm</li>
    <li data-icon="ion-android-system-windows"><span>Multi<br/>window</span></li>
</ul>
<div mbsc-form>
    <div>
        <label>
            <input value="55" type="range" data-role="range" data-icon='{ "left": "brightness-contrast" }'>
        </label>
        <label>
            <input value="85" type="range" data-role="range" data-icon='{ "left": "volume-medium" }'>
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Notifications</div>
        <ul class="md-notifications" style="display:none;">
            <li data-icon="ion-usb">
                <p>Connected as a media device</p>
                <p>Touch for other USB options</p>
            </li>
            <li data-icon="foundation-mail">
                <p>4 new messages</p>
                <p>hello@mobiscroll.com</p>
            </li>
            <li data-icon="foundation-mail">
                <p>1 new message</p>
                <p>support@mobiscroll.com</p>
            </li>
            <li data-icon="alarm2">
                <p>Time to wake up</p>
                <p>8:00 AM</p>
            </li>
            <li data-icon="calendar">
                <p>Google I/O Keynote</p>
                <p>Moscone West</p>
            </li>
            <li data-icon="download">
                <p>Download finished </p>
                <p>mobiscroll.custom-2.17.0.zip</p>
            </li>
        </ul>
    </div>
</div>

Option List - Scroll options

Choose demo
$(function () {
    $('#demo').mobiscroll().optionlist({
        lang: '',
        theme: '',
        display: 'top',
        select: 'off',
        layout: 'fixed',
        itemWidth: 83,
        onItemTap: function (event, inst) {
            mobiscroll.toast({
                message: event.target.getAttribute('data-text')
            });
        }
    })
})
<div class="md-pic-edit">

    <ul id="demo" style="display:none;">
        <li data-icon="material-crop" data-text="Crop"></li>
        <li data-icon="material-brightness-medium" data-text="Brightness"></li>
        <li data-icon="material-rotate-right" data-text="Rotate"></li>
        <li data-icon="material-filter" data-text="Filter"></li>
        <li data-icon="material-palette" data-text="Paint"></li>
        <li data-icon="material-iso" data-text="ISO"></li>
        <li data-icon="material-wb-auto" data-text="Auto color"></li>
        <li data-icon="material-photo-size-select-large" data-text="Resize"></li>
        <li data-icon="material-texture" data-text="Texture"></li>
    </ul>


    <div class="md-pic-overlay"></div>

</div>
/* pic */

.md-pic-edit .md-pic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Content/img/photo_edit.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-origin: content-box;
}

Option List - Single/multiple select

Choose demo
$(function () {

    $('#demo').mobiscroll().optionlist({
        lang: '',
        theme: '',
        select: 'single'
    });

    $('#demo-multiple').mobiscroll().optionlist({
        lang: '',
        theme: '',
        select: 'multiple'
    });

});
<div class="mbsc-form-group">
    <div class="mbsc-form-group-title">Single select</div>
    <ul id="demo" style="display:none">
        <li data-icon="connection">Wifi</li>
        <li data-icon="location">Location</li>
        <li data-selected="true" data-icon="volume-medium">Sound</li>
        <li data-icon="fa-rotate-left">Rotation</li>
        <li data-disabled="true" data-icon="ion-bluetooth">Bluetooth</li>
        <li data-icon="cogs">Settings</li>
        <li data-icon="user4">Reading</li>
        <li data-icon="download">Data</li>
        <li data-icon="foundation-minus-circle">Blocking</li>
        <li data-icon="fa-leaf">Power</li>
        <li data-icon="ion-android-system-windows">Windows</li>
    </ul>
</div>
<div class="mbsc-form-group">
    <div class="mbsc-form-group-title">Multiple select</div>
    <ul id="demo-multiple" style="display:none">
        <li data-selected="true" data-icon="material-format-bold"></li>
        <li data-icon="material-format-ital"></li>
        <li data-icon="material-format-underline"></li>
    </ul>
</div>

Option List - Event handlers

Choose demo
$(function () {
    $('#demo').mobiscroll().optionlist({
        lang: '',
        theme: '',
        onInit: function (event, inst) {
            // Your custom event handler goes here
        },
        onMarkupReady: function (event, inst) {
            // Your custom event handler goes here
        },
        onMove: function (event, inst) {
            // Your custom event handler goes here
        },
        onItemTap: function (event, inst) {
            // Your custom event handler goes here
        },
        onAnimationStart: function (event, inst) {
            // Your custom event handler goes here
        },
        onAnimationEnd: function (event, inst) {
            // Your custom event handler goes here
        },
        onGestureStart: function (event, inst) {
            // Your custom event handler goes here
        },
        onGestureEnd: function (event, inst) {
            // Your custom event handler goes here
        }
    });
});
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Multiple select</div>
<ul id="demo" style="display:none">
    <li data-icon="connection">Wifi</li>
    <li data-icon="location">Location</li>
    <li data-selected="true" data-icon="volume-medium">Sound</li>
    <li data-icon="fa-rotate-left">Rotation</li>
    <li data-disabled="true" data-icon="ion-bluetooth">Bluetooth</li>
    <li data-icon="cogs">Settings</li>
    <li data-icon="user4">Reading</li>
    <li data-icon="download">Data</li>
    <li data-icon="foundation-minus-circle">Blocking</li>
    <li data-icon="fa-leaf">Power</li>
    <li data-icon="ion-android-system-windows">Windows</li>
</ul>
</div>
Clear event log
EVENTS FIRED: 
light
dark
light
dark

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

Customize & try demos locally
Please sign in or start a free trial to download

What is your main focus at the moment?

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

Install demo in your app
Follow steps to install mobiscroll and use example

Install Mobiscroll for Ionic

Step 1.

Install the Mobiscroll CLI from npm (you might need sudo access).

Copy command
$ npm install -g @mobiscroll/cli

Step 2.

Run the config command in the root folder of the Ionic project.
You will have to enter your email address/user and password (update password) of your mobiscroll account.
If you don't have an app, create a starter with the Ionic CLI $ ionic start myStarterApp tabs

Copy command
$ mobiscroll config ionic

Copy the demo to your app.
If Mobiscroll is already installed in your Ionic app grab and paste the code below. The HTML goes into markup and the Typescript into the TS file. If you need to install mobiscroll use the CLI.

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
New Password Required Enter at least 6 characters Please avoid dangerous characters like '<' or '&'
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.

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

The demos are using an in-browser TypeScript transpiler app as base. Please extract the zip file and open the index.html on your local development server.

Alternatively you can use live-server. For installation and usage, open a terminal window and follow these steps.

Step 1. Install live-server
$ npm install -g live-server
Step 2. Start server & run app
$ live-server

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. Please extract the zip file and open the demos in your browser.


Let us know if we can help and enjoy!

Demos
Scrollview
Paging Cards
Controls
Calendar 14
Cards 9
Color 8
Date & Time 12
Event Calendar 6
Forms 24
Image 5
Listview 18
Measurement 14
Navigation 6
Number 6
Numpad 12
Option List 4
Range 14
Scroller 5
Scrollview 2
Select 13
Styling 3
Timer 4
Timespan 5
Treelist 5
Widget 8
Demo Apps 5
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Bootstrap
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos