Option List for jQuery and jQuery Mobile

Updated on May 17, 2021

jQuery Option List Settings

  • Wi-Fi
  • Bluetooth
  • Location
  • Screen
    rotation
  • Sound
  • Data
  • Blocking
    mode
  • Airplane
    mode
  • Power
    saving
  • Alarm
  • Multi
    window
Notifications
    • Connected as a media device

      Touch for other USB options

    • 4 new messages

      hello@mobiscroll.com

    • 1 new message

      support@mobiscroll.com

    • Time to wake up

      8:00 AM

    • Google I/O Keynote

      Moscone West

    • Download finished

      mobiscroll.custom-2.17.0.zip

    Option List - Settings

    Change demo
    Settings
    JQuery Horizontally scrollable option list for turning settings on and off. Use it with icons and labels.
    Copy code
    // Use the settings object to change the theme
    mobiscroll.settings = {
        theme: 'ios',
        themeVariant: 'light'
    };
    
    $(function () {
    
        $('#demo').mobiscroll().optionlist({
            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" class="mbsc-cloak">
        <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 mbsc-slider value="55" type="range" data-icon='{ "left": "brightness-contrast" }'>
            </label>
            <label>
                <input mbsc-slider value="85" type="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 mbsc-cloak">
                <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>
    Show more code

    Option List - Scroll options

    Change demo
    Scroll options
    JQuery Horizontally scrollable option list demo for activating settings or actions. Example using icons only.
    Copy code

    Option List - Single/multiple select

    Change demo
    Single/multiple select
    JQuery Option list demo with single select and multiple select examples. Use it with a fixed with or scrollable list.
    Copy code

    Option List - Event handlers

    Change demo
    Event handlers
    JQuery Horizontally scrollable option list with event hooks for custom integration and functionality. With source code.
    Clear event log
    EVENTS FIRED: 
    Copy code

    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
    Sign in or start your free trial

    What framework are you using?

    Javascript
    jQuery
    AngularJS
    Angular
    React
    Other
    Ionic Angular
    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 --version=4

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

    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.

    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 --version=4

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

    Step 3.Copy the code into your app.

    Copy TSX
    Copy CSS

    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 --version=4

    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!

    Thanks for downloading
    Customize demos locally

    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

    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

    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! 👍

    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

    Need to update your password?
    Demos
    Theme Select
    Mobiscroll
    Material
    Material Dark
    iOS
    iOS Dark
    Windows
    Windows Dark
    Language Locale
    See other demos and change options
    Theme
    Locale
    See other demos