Popup for Javascript

Learn more

The popup provides a frame for all your pop-over needs able to render custom content, forms or combined views.

Use it for contextual pop-ups, data-entry or to inform users in a consistent way with all other Mobiscroll component.

Shipping with useful features for a refined UX, including:

  • Usage on mobile and desktop
  • Combined views for various components
  • Initialization on any custom content
  • Consistent styling with all components
  • Flexible button API
  • Full theming support with light & dark variants
  • Modal, popup, bubble and top/bottom display
  • RTL Support
  • Button localization


Popup demos available for other frameworks.

Viewing demos & code for

light
dark

Change the theme setting here

Popup - Basic

Change demo
Basic
Javascript Popup demo with user profile and radio button list return value. Combine different elements into a widget. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var account = mobiscroll.popup('#demo', {
        display: 'center'
    }),
    popup = mobiscroll.popup('#list', {
        display: 'center',
        onSet: function (event, inst) {
            var checked = document.querySelector('input[name="update"]:checked');
            document.getElementById('showPopup').value = checked ? checked.value : '';
        }
    }),
    scrollable = mobiscroll.popup('#scrollable', {
        display: 'center',
        scrollLock: false,
        cssClass: 'mbsc-no-padding md-content-scroll',
        buttons: []
    });

mobiscroll.listview('#listview', {
    enhance: true,
    swipe: false,
    onItemTap: function () {
        scrollable.hide();
        mobiscroll.toast({
            message: event.target.textContent + ' clicked'
        });
    }
});

document
    .getElementById('showAccount')
    .addEventListener('click', function () {
        account.show();
    }, false);

document
    .getElementById('showPopup')
    .addEventListener('click', function () {
        popup.show();
    }, false);

document
    .getElementById('showScrollable')
    .addEventListener('click', function () {
        scrollable.show();
    }, false);
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Without return value</div>
        <div class="mbsc-btn-group-block">
            <button id="showAccount">Show Popup</button>
        </div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">With return value</div>
        <label> Update
            <input id="showPopup" placeholder="Please Select..." readonly />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">With scrollable content</div>
        <div class="mbsc-btn-group-block">
            <button id="showScrollable">Show Popup</button>
        </div>
    </div>
</div>

<div id="demo" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/f1.png">
        <h3>Liza Taylor</h3>
        <p>liza.taylor@mobiscroll.com <br> (202) 555-0127</p>
    </div>
</div>

<div id="list" class="mbsc-cloak">
    <div mbsc-form>
        <div class="mbsc-form-group-inset">
            <p>Some updates are available for you. <br> When would you like to install them?</p>
        </div>
        <div class="mbsc-form-group-inset">
            <label>
                <input type="radio" name="update" value="Right now" checked /> Right now
            </label>
            <label>
                <input type="radio" name="update" value="Later on today" /> Later on today
            </label>
            <label>
                <input type="radio" name="update" value="Remind me tomorrow" /> Remind me tomorrow
            </label>
        </div>
    </div>
</div>

<div id="scrollable" class="mbsc-cloak">
    <ul id="listview" class="mbsc-cloak">
        <li data-icon="connection">Wifi</li>
        <li data-icon="location">Location</li>
        <li data-icon="volume-medium">Sound</li>
        <li data-icon="fa-rotate-left">Rotation</li>
        <li 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="eye">Eye comfort</li>
        <li data-icon="mobile">Screenshot</li>
        <li data-icon="airplane">Airplane Mode</li>
        <li data-icon="alarm2">Alarm</li>
        <li data-icon="material-message">Messages</li>
        <li data-icon="meteo-weather4">Weather</li>
        <li data-icon="camera">Camera</li>
        <li data-icon="material-photo-size-select-large">Edit</li>
    </ul>
</div>
.md-content-scroll .mbsc-fr-c {
    height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

Popup - Signup and login

Change demo
Signup and login
Javascript Popup demo with sign up and login forms. Use it with center, anchored bubble or top/bottom display. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var register = mobiscroll.popup('#demo', {
        display: 'center',
        buttons: [{
            text: 'Sign Up',
            handler: 'set'
        }]
    }),
    login = mobiscroll.popup('#login', {
        display: 'center',
        buttons: [{
            text: 'Log In',
            handler: 'set'
        }],
        onMarkupReady: function (event, inst) {
            var btns = event.target.querySelectorAll('.md-social-btn');
            for (var i = 0; i < btns.length; ++i) {
                btns[i].addEventListener('click', function () {
                    inst.hide();
                });
            }
        }
    });


document
    .getElementById('showRegister')
    .addEventListener('click', function () {
        register.show();
    }, false);

document
    .getElementById('showLogin')
    .addEventListener('click', function () {
        login.show();
    }, false);
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="showRegister">Show register form</button>
            <button id="showLogin">Show login form</button>
        </div>
    </div>
</div>

<div id="demo" class="mbsc-cloak">
    <div mbsc-form>
        <div class="mbsc-form-group-inset">
            <label>
                <input type="text" name="name" placeholder="Name" />
            </label>
            <label>
                <input type="text" name="email" placeholder="Email" />
            </label>
            <label>
                <input name="password" type="text" placeholder="Password" data-password-toggle="true" data-icon-show="eye" data-icon-hide="eye-blocked" />
            </label>
        </div>
    </div>
</div>

<div id="login" class="mbsc-cloak">
    <div mbsc-form>
        <div class="mbsc-form-group-inset">
            <label>
                <input type="text" name="email" placeholder="Email" />
            </label>
            <label>
                <input name="password" type="text" placeholder="Password" data-password-toggle="true" data-icon-show="eye" data-icon-hide="eye-blocked" />
            </label>
        </div>
        <div class="mbsc-align-center">or log in with one of your existing accounts</div>
        <div class="mbsc-form-group-inset">
            <button class="md-social-btn mbsc-btn-block" style="background:#3c5c9a;color:#fff;">
                <span class="mbsc-ic mbsc-ic-ion-social-facebook mbsc-pull-left"></span>
                Log in with Facebook
            </button>
            <button class="md-social-btn mbsc-btn-block" style="background:#28aae1;color:#fff;">
                <span class="mbsc-ic mbsc-ic-fa-twitter mbsc-pull-left"></span>
                Log in with Twitter
            </button>
            <button class="md-social-btn mbsc-btn-block" style="background:#d34230;color:#fff;">
                <span class="mbsc-ic mbsc-ic-fa-google mbsc-pull-left"></span>
                Log in with Google
            </button>
        </div>
    </div>
</div>
.md-social-btn .mbsc-ic {
    float: left;
}

Popup - Sheet list & grid

Change demo
Sheet list & grid
Javascript Popup with scrollable sheet grid view or sheet list view. Provide contextual actions and shortcuts. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var list = mobiscroll.popup('#list', {
        buttons: [],
        display: 'bottom',
        cssClass: 'mbsc-no-padding'
    }),
    grid = mobiscroll.popup('#grid', {
        buttons: [],
        display: 'bottom',
        cssClass: 'mbsc-no-padding'
    });

mobiscroll.listview('#demo-lv', {
    enhance: true,
    swipe: false,
    onItemTap: function (event, inst) {
        list.hide();
        mobiscroll.toast({
            message: event.target.textContent + ' clicked'
        });
    }
});

mobiscroll.optionlist('#demo-ol', {
    type: 'menu',
    select: 'single',
    snap: true,
    itemWidth: 80,
    display: 'inline',
    cssClass: 'md-bottom-grid',
    onItemTap: function (event, inst) {
        grid.hide();
        mobiscroll.toast({
            message: event.target.textContent + ' clicked'
        });
    }
});

document
    .getElementById('showList')
    .addEventListener('click', function () {
        list.show();
    }, false);

document
    .getElementById('showGrid')
    .addEventListener('click', function () {
        grid.show();
    }, false);
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="showList">Show sheet list</button>
            <button id="showGrid">Show sheet grid</button>
        </div>
    </div>
</div>

<div id="list" class="mbsc-cloak">
    <ul id="demo-lv">
        <li data-role="list-divider">Actions</li>
        <li data-icon="share">Share</li>
        <li data-icon="cloud-upload">Upload</li>
        <li data-icon="copy3">Copy</li>
        <li data-icon="print">Print</li>
    </ul>
</div>

<div id="grid" class="mbsc-cloak">
    <ul id="demo-ol">
        <li data-icon="ion-social-facebook">Facebook</li>
        <li data-icon="fa-twitter">Twitter</li>
        <li data-icon="fa-google-plus">Google plus</li>
        <li data-icon="ion-email">Email</li>
        <li data-icon="bubble">Message</li>
        <li data-icon="copy3">Copy</li>
    </ul>
</div>
/* grid */

.md-bottom-grid.mbsc-ms-c {
    border: 0;
}

Popup - Lists

Change demo
Lists
Javascript Pop-over with anchored display featuring horizontal, vertical lists and checklist. With source code. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var horizontal = mobiscroll.popup('#horizontal', {
        display: 'bubble',
        anchor: '#showHorizontal',
        buttons: [],
        cssClass: 'mbsc-no-padding'
    }),
    vertical = mobiscroll.popup('#vertical', {
        display: 'bubble',
        anchor: '#showVertical',
        buttons: [],
        cssClass: 'mbsc-no-padding md-vertical-list'
    }),
    checklist = mobiscroll.popup('#check', {
        display: 'bubble',
        anchor: '#showChecklist',
        buttons: [],
        cssClass: 'mbsc-no-padding md-vertical-list'
    });

mobiscroll.optionlist('#optionlist', {
    type: 'menu',
    snap: true,
    itemWidth: 80,
    display: 'inline',
    cssClass: 'md-no-border-grid',
    onItemTap: function (event, inst) {
        horizontal.hide();
        mobiscroll.toast({
            message: event.target.textContent + ' clicked'
        });
    }
});

mobiscroll.listview('#listview', {
    enhance: true,
    swipe: false,
    onItemTap: function (event, inst) {
        vertical.hide();
        mobiscroll.toast({
            message: event.target.textContent + ' clicked'
        });
    }
});

mobiscroll.listview('#checklist', {
    enhance: true,
    swipe: false
});

document
    .getElementById('showHorizontal')
    .addEventListener('click', function () {
        horizontal.show();
    }, false);

document
    .getElementById('showVertical')
    .addEventListener('click', function () {
        vertical.show();
    }, false);

document
    .getElementById('showChecklist')
    .addEventListener('click', function () {
        checklist.show();
    }, false);
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="showHorizontal">Show horizontal list</button>
            <button id="showVertical">Show vertical list</button>
            <button id="showChecklist">Show checklist</button>
        </div>
    </div>
</div>

<div id="horizontal" class="mbsc-cloak">
    <ul id="optionlist" class="mbsc-cloak">
        <li data-icon="connection">Wifi</li>
        <li data-icon="location">Location</li>
        <li data-icon="volume-medium">Sound</li>
        <li data-icon="fa-rotate-left">Rotation</li>
        <li data-icon="ion-bluetooth">Bluetooth</li>
        <li data-icon="cogs">Settings</li>
        <li data-icon="user4">Reading</li>
        <li data-icon="download">Data</li>
    </ul>
</div>

<div id="vertical" class="mbsc-cloak">
    <ul id="listview" class="mbsc-cloak">
        <li data-icon="connection">Wifi</li>
        <li data-icon="location">Location</li>
        <li data-icon="volume-medium">Sound</li>
        <li data-icon="fa-rotate-left">Rotation</li>
        <li data-icon="ion-bluetooth">Bluetooth</li>
        <li data-icon="cogs">Settings</li>
        <li data-icon="user4">Reading</li>
        <li data-icon="download">Data</li>
    </ul>
</div>

<div id="check" class="mbsc-cloak">
    <div mbsc-form>
        <ul id="checklist">
            <li data-icon="connection"><input type="checkbox" />Wifi</li>
            <li data-icon="location"><input type="checkbox" />Location</li>
            <li data-icon="volume-medium"><input type="checkbox" />Sound</li>
            <li data-icon="fa-rotate-left"><input type="checkbox" />Rotation</li>
            <li data-icon="ion-bluetooth"><input type="checkbox" />Bluetooth</li>
            <li data-icon="cogs"><input type="checkbox" />Settings</li>
            <li data-icon="user4"><input type="checkbox" />Reading</li>
            <li data-icon="download"><input type="checkbox" />Data</li>
        </ul>
    </div>
</div>
.md-vertical-list.mbsc-ios .mbsc-fr-arr {
    background: #fff;
}

.md-vertical-list.mbsc-ios-dark .mbsc-fr-arr {
    background: #0f0f0f;
}

.md-no-border-grid.mbsc-ms-c {
    border: 0;
}

Popup - User popover

Change demo
User popover
Javascript Pop-over demo with display on hover. Use it to provide more information for highlighted elements or text. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var popup = mobiscroll.popup('#details', {
    display: 'bubble',
    anchor: '#link',
    buttons: []
});

document
    .getElementById('link')
    .addEventListener("mouseenter", function (event) {
        popup.show();
    }, false);

document
    .getElementById('details')
    .addEventListener("mouseleave", function (event) {
        popup.hide();
    }, false);
<div mbsc-form>
    <div class="mbsc-padding">
        <div class="mbsc-form-group">
            <p>
                Meet web developer <a id="link" style="cursor:pointer;text-decoration:underline;">Liza</a> who designs and builds websites. She is responsible for the appearance, of the site and technical aspects, such as site speed and how much traffic
                the site can handle. She also creates site content that requires technical features.
            </p>
        </div>
    </div>
</div>

<div id="details" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/f1.png">
        <h3>Liza Taylor</h3>
        <p>liza.taylor@mobiscroll.com <br> (202) 555-0127</p>
    </div>
</div>

Popup - Advanced widgets

Change demo
Advanced widgets
Javascript Popup widget demo with combined segmented control/tabs and time picker. Combine controls for advanced functionality. Plain JS api for usage everywhere.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

var popup = mobiscroll.popup('#popup', {
        cssClass: 'md-advanced-popup',
        buttons: ['set', 'cancel'],
        onSet: function (event, inst) {
            var day = document.querySelector('input[name="day"]:checked').value,
                today = time.getVal(),
                tempToday = new Date(today.setSeconds(0)),
                tomorrow = new Date(tempToday.setDate(tempToday.getDate() + 1)),
                selectedTime = day == 'today' ? today : tomorrow;

            document.getElementById('setTime').value = selectedTime.toLocaleString();
        }
    }),
    time = mobiscroll.time('#time', {
        display: 'inline',
        steps: { minute: 15 },
        onInit: function (event, inst) {
            inst.setVal(new Date());
        },
        onMarkupReady: function (event, inst) {
            event.target.classList.add('mbsc-fr-bottom');
            event.target.classList.remove('mbsc-fr-inline');
        }
    });

document
    .getElementById('setTime')
    .addEventListener('click', function () {
        popup.show();
    }, false);
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Select time</div>
        <label> Date & Time
            <input id="setTime" placeholder="Please select...">
        </label>
    </div>
</div>

<div id="popup" class="mbsc-cloak">
    <div mbsc-form>
        <label>
            Today
            <input type="radio" data-role="segmented" name="day" value="today" checked>
        </label>
        <label>
            Tomorrow
            <input type="radio" data-role="segmented" name="day" value="tomorrow">
        </label>
        <div>
            <input id="time" type="hidden">
        </div>
    </div>
</div>
/* Needed for the time picker, because we removed the mbsc-fr-inline class below */

.md-advanced-popup .mbsc-fr,
.md-advanced-popup .mbsc-fr .mbsc-fr-popup {
    position: static;
    border: 0;
    pointer-events: auto;
    box-shadow: none;
}

/* Theme overrides */

.md-advanced-popup.mbsc-ios .mbsc-segmented,
.md-advanced-popup.mbsc-ios .mbsc-segmented-content {
    background: #d1d5db;
}

.md-advanced-popup.mbsc-ios-dark .mbsc-segmented,
.md-advanced-popup.mbsc-ios-dark .mbsc-segmented-content {
    background: #080808;
}

.md-advanced-popup.mbsc-windows .mbsc-segmented,
.md-advanced-popup.mbsc-windows .mbsc-segmented-content {
    background: #f2f2f2;
}

.md-advanced-popup.mbsc-windows-dark .mbsc-segmented,
.md-advanced-popup.mbsc-windows-dark .mbsc-segmented-content {
    background: #1a1a1a;
}

Popup - Configure buttons

Change demo
Configure buttons
Javascript Popup demo with different button configurations. Use it with or without buttons. Add custom actions. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var noButtons = mobiscroll.popup('#no-button', {
        display: 'center',
        buttons: []
    }),

    defaultButtons = mobiscroll.popup('#default', {
        display: 'center'
    }),

    customButtons = mobiscroll.popup('#custom', {
        display: 'center',
        buttons: [
            'set',
            {
                text: 'Custom',
                icon: 'checkmark',
                handler: function () {
                    customButtons.hide();
                    mobiscroll.toast({
                        message: ' Custom button clicked'
                    });
                }
            },
            'cancel'
        ]
    });

document
    .getElementById('showNoButton')
    .addEventListener('click', function () {
        noButtons.show();
    }, false);

document
    .getElementById('showDefault')
    .addEventListener('click', function () {
        defaultButtons.show();
    }, false);

document
    .getElementById('showCustom')
    .addEventListener('click', function () {
        customButtons.show();
    }, false);
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="showNoButton">No button</button>
            <button id="showDefault">Default</button>
            <button id="showCustom">Custom buttons</buttom>
        </div>
    </div>
</div>

<div id="no-button" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <h3 class="md-text-center">Hi!</h3>
        <p class="md-text-center">This is a popup with no buttons</p>
    </div>
</div>

<div id="default" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <h3 class="md-text-center">Hi there!</h3>
        <p class="md-text-center">This is a popup with default button</p>
    </div>
</div>

<div id="custom" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <h3 class="md-text-center">Hi again!</h3>
        <p class="md-text-center">This is a popup with three custom buttons</p>
    </div>
</div>

Popup - Display modes

Change demo
Display modes
Javascript Popup demo with top/bottom center and anchored bubble display modes. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var bottomDemo = mobiscroll.popup('#demo-bottom', {
        display: 'bottom',
        buttons: [{
                text: 'Ok',
                handler: 'set'
            },
            'cancel'
        ]
    }),

    topDemo = mobiscroll.popup('#demo-top', {
        display: 'top',
        buttons: [{
                text: 'Ok',
                handler: 'set'
            },
            'cancel'
        ]
    }),

    centerDemo = mobiscroll.popup('#demo-center', {
        display: 'center',
        buttons: [{
                text: 'Ok',
                handler: 'set'
            },
            'cancel'
        ]
    }),

    bubbleDemo = mobiscroll.popup('#demo-bubble', {
        display: 'bubble',
        anchor: '#show-bubble',
        buttons: [{
                text: 'Ok',
                handler: 'set'
            },
            'cancel'
        ]
    });

document
    .getElementById('show-bottom')
    .addEventListener('click', function () {
        bottomDemo.show();
    });

document
    .getElementById('show-top')
    .addEventListener('click', function () {
        topDemo.show();
    });

document
    .getElementById('show-center')
    .addEventListener('click', function () {
        centerDemo.show();
    });

document
    .getElementById('show-bubble')
    .addEventListener('click', function () {
        bubbleDemo.show();
    });
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Try different display modes</div>
        <div class="mbsc-form-group mbsc-btn-group-block">
            <button id="show-bottom">Try bottom display mode</button>
            <button id="show-top">Try top display mode</button>
            <button id="show-center">Try center display mode</button>
            <button id="show-bubble">Try bubble display mode</button>
        </div>
    </div>
</div>

<div id="demo-bottom" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-top" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-center" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-bubble" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

Popup - Theming capabilities

Change demo
Theming capabilities
Javascript Popup widget with iOS, Material, Windows look & feel. Customize colors and styling with theme builder. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var iosDemo = mobiscroll.popup("#demo-ios", {
        theme: 'ios',
        display: 'center',
        touchUi: false
    }),
    iosDarkDemo = mobiscroll.popup("#demo-ios-dark", {
        theme: 'ios-dark',
        display: 'center',
        touchUi: false
    }),
    iosCustomDemo = mobiscroll.popup("#demo-ios-custom", {
        theme: 'ios-gray',
        display: 'center',
        touchUi: false
    }),
    materialDemo = mobiscroll.popup("#demo-material", {
        theme: 'material',
        display: 'center',
        touchUi: false
    }),
    materialDarkDemo = mobiscroll.popup("#demo-material-dark", {
        theme: 'material-dark',
        display: 'center',
        touchUi: false
    }),
    materialCustomDemo = mobiscroll.popup("#demo-material-custom", {
        theme: 'material-indigo',
        display: 'center',
        touchUi: false
    }),
    windowsDemo = mobiscroll.popup("#demo-windows", {
        theme: 'windows',
        display: 'center',
        touchUi: false
    }),
    windowsDarkDemo = mobiscroll.popup("#demo-windows-dark", {
        theme: 'windows-dark',
        display: 'center',
        touchUi: false
    }),
    windowsCustomDemo = mobiscroll.popup("#demo-windows-custom", {
        theme: 'windows-yellow',
        display: 'center',
        touchUi: false
    }),
    mobiscrollDemo = mobiscroll.popup("#demo-mobiscroll", {
        theme: 'mobiscroll',
        display: 'center',
        touchUi: false
    }),
    mobiscrollDarkDemo = mobiscroll.popup("#demo-mobiscroll-dark", {
        theme: 'mobiscroll-dark',
        display: 'center',
        touchUi: false
    }),
    mobiscrollCustomDemo = mobiscroll.popup("#demo-mobiscroll-custom", {
        theme: 'mobiscroll-lime',
        display: 'center',
        touchUi: false
    });

document
    .getElementById('show-ios')
    .addEventListener('click', function () {
        iosDemo.show();
    });
document
    .getElementById('show-ios-dark')
    .addEventListener('click', function () {
        iosDarkDemo.show();
    });
document
    .getElementById('show-ios-custom')
    .addEventListener('click', function () {
        iosDarkDemo.show();
    });
document
    .getElementById('show-material')
    .addEventListener('click', function () {
        materialDemo.show();
    });
document
    .getElementById('show-material-dark')
    .addEventListener('click', function () {
        materialDarkDemo.show();
    });
document
    .getElementById('show-material-custom')
    .addEventListener('click', function () {
        materialDarkDemo.show();
    });
document
    .getElementById('show-windows')
    .addEventListener('click', function () {
        windowsDemo.show();
    });
document
    .getElementById('show-windows-dark')
    .addEventListener('click', function () {
        windowsDarkDemo.show();
    });
document
    .getElementById('show-windows-custom')
    .addEventListener('click', function () {
        windowsDarkDemo.show();
    });
document
    .getElementById('show-mobiscroll')
    .addEventListener('click', function () {
        mobiscrollDemo.show();
    });
document
    .getElementById('show-mobiscroll-dark')
    .addEventListener('click', function () {
        mobiscrollDarkDemo.show();
    });
document
    .getElementById('show-mobiscroll-custom')
    .addEventListener('click', function () {
        mobiscrollDarkDemo.show();
    });
<div mbsc-form>
    <div class="mbsc-grid mbsc-grid-fixed">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">iOS Theme</div>
                    <div class="mbsc-btn-group-block">
                        <button id="show-ios">iOS Light Theme</button>
                        <button id="show-ios-dark">iOS Dark Theme</button>
                        <button id="show-ios-custom">iOS Custom Theme</button>
                    </div>
                </div>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Material Theme</div>
                    <div class="mbsc-btn-group-block">
                        <button id="show-material">Material Light Theme</button>
                        <button id="show-material-dark">Material Dark Theme</button>
                        <button id="show-material-custom">Material Custom Theme</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Windows Theme</div>
                    <div class="mbsc-btn-group-block">
                        <button id="show-windows">Windows Light Theme</button>
                        <button id="show-windows-dark">Windows Dark Theme</button>
                        <button id="show-windows-custom">Windows Custom Theme</button>
                    </div>
                </div>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Mobiscroll Theme</div>
                    <div class="mbsc-btn-group-block">
                        <button id="show-mobiscroll">Mobiscroll Light Theme</button>
                        <button id="show-mobiscroll-dark">Mobiscroll Dark Theme</button>
                        <button id="show-mobiscroll-custom">Mobiscroll Custom Theme</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="demo-ios" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-ios-dark" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-ios-custom" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-material" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-material-dark" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-material-custom" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-windows" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-windows-dark" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-windows-custom" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-mobiscroll" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-mobiscroll-dark" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-mobiscroll-custom" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

Popup - Event handlers

Change demo
Event handlers
Javascript Popup demo with event hooks for custom integration and functionality. Use event handlers to customize flows. Plain JS api for usage everywhere.
Clear event log
EVENTS FIRED: 
mobiscroll.settings = {
    theme: '',
    lang: ''
};

var popup = mobiscroll.popup('#demo', {
    theme: '',
    lang: '',
    display: 'center',
    buttons: [{
            text: 'Ok',
            handler: 'set'
        },
        'cancel'
    ],
    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
    },
    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
    },
    onSet: function (event, inst) {
        // Your custom event handler goes here
    }
});

document
    .getElementById('show')
    .addEventListener('click', function () {
        popup.show();
    }, false);
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="show">Show popup</button>
        </div>
    </div>
</div>

<div id="demo" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

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 Javascript $595


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


Buy framework license
See other licensing options

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for Javascript $595


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

Framework license


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

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

Select the framework you are interested in

Javascript
jQuery
Angular
Angular JS
React

Use Javascript when building with plain and simple JS.

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

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

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

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

Do you need additional support seats?

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

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

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

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

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

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

Create an Ionic 3 & Mobiscroll starter with the CLI:

$ mobiscroll start ionic myStarter

Run this command for Ionic 4 & Mobiscroll starter:

$ mobiscroll start ionic-angular myStarter

Step 3.Copy the code into your app.

Copy TS
Copy HTML
Copy CSS
Copy Module

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

Copy command
$ ionic serve

And voilà, everything should be running smoothly.

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

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

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

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

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

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

Copy TS
Copy HTML
Copy CSS
Copy Module

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

Copy command
$ ng serve

And voilà, everything should be running smoothly.

Thanks for downloading
Try and customize the app locally

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

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

Let us know if we can help and enjoy!

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

You are setting a password for the account

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

Your password has been changed!

Thanks for downloading
Customize demos locally

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

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 18
Slider & progress 4
Styling 6
Timer 5
Timespan 6
Toggle & Radio 4
Treelist 7
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Bootstrap
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos