Angular JS Popup
Popup for Angular JS and Ionic 1
Popup for Angular JS and Ionic 1
Popup for Angular JS and Ionic 1
Learn moreThe 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
Popup - Basic
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form', 'mobiscroll-listview'])
.controller('demoController', ['$scope', function ($scope) {
$scope.options = [{
text: 'Wifi',
icon: 'connection'
}, {
text: 'Location',
icon: 'location'
}, {
text: 'Sound',
icon: 'volume-medium'
}, {
text: 'Rotation',
icon: 'fa-rotate-left'
}, {
text: 'Bluetooth',
icon: 'ion-bluetooth'
}, {
text: 'Settings',
icon: 'cogs'
}, {
text: 'Reading',
icon: 'user4'
}, {
text: 'Data',
icon: 'download'
}, {
text: 'Eye comfort',
icon: 'eye'
}, {
text: 'Screenshot',
icon: 'mobile'
}, {
text: 'Airplane Mode',
icon: 'airplane'
}, {
text: 'Alarm',
icon: 'alarm2'
}, {
text: 'Messages',
icon: 'material-message'
}, {
text: 'Weather',
icon: 'meteo-weather4'
}, {
text: 'Camera',
icon: 'camera'
}, {
text: 'Edit',
icon: 'material-photo-size-select-large'
}]
$scope.settings = {
display: 'center'
};
$scope.listSettings = {
display: 'center',
onSet: function (event, inst) {
$scope.$apply(function () {
$scope.checked = $scope.update;
});
}
};
$scope.scrollableSettings = {
display: 'center',
scrollLock: false,
cssClass: 'mbsc-no-padding md-content-scroll',
buttons: []
};
$scope.lvSettings = {
enhance: true,
swipe: false,
onItemTap: function (event, inst) {
var target = angular.element(event.target).clone();
target.children().remove();
var text = target.text();
mobiscroll.toast({
message: text + ' clicked'
});
}
};
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-form>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Without return value</div>
<div class="mbsc-btn-group-block">
<button mbsc-button ng-click="popup.show()">Show Popup</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">With return value</div>
<label> Update
<input mbsc-input ng-click="list.show()" value={{checked}} 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 mbsc-button ng-click="scrollable.show()">Show Popup</button>
</div>
</div>
</div>
<div ng-model="mypopup" mobiscroll-popup="settings" mobiscroll-instance="popup" 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 ng-model="myradio" mobiscroll-popup="listSettings" mobiscroll-instance="list" class="mbsc-cloak">
<div mobiscroll-form="formSettings">
<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 mbsc-radio ng-model="update" type="radio" value="Right now" checked /> Right now
</label>
<label>
<input mbsc-radio ng-model="update" type="radio" value="Later on today" /> Later on today
</label>
<label>
<input mbsc-radio ng-model="update" type="radio" value="Remind me tomorrow" /> Remind me tomorrow
</label>
</div>
</div>
</div>
<div ng-model="myscrollable" mobiscroll-popup="scrollableSettings" mobiscroll-instance="scrollable" class="mbsc-cloak">
<ul mobiscroll-listview="lvSettings" mobiscroll-data="options">
<li data-icon="{{item.icon}}" ng-click="scrollable.hide()">{{item.text}}</li>
</ul>
</div>
</div>
.md-content-scroll .mbsc-fr-c {
height: 400px;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.md-content-scroll .mbsc-popup {
filter: blur(8px);
}
Popup - Signup and login
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form'])
.controller('demoController', ['$scope', function ($scope) {
$scope.registerSettings = {
display: 'center',
buttons: [{
text: 'Sign Up',
handler: 'set'
}]
};
$scope.loginSettings = {
display: 'center',
buttons: [{
text: 'Log In',
handler: 'set'
}]
};
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-form>
<div class="mbsc-form-group">
<div class="mbsc-btn-group-block">
<button mbsc-button ng-click="register.show()">Show register form</button>
<button mbsc-button ng-click="login.show()">Show login form</button>
</div>
</div>
</div>
<div ng-model="myregister" mobiscroll-popup="registerSettings" mobiscroll-instance="register" class="mbsc-cloak">
<div mobiscroll-form="formSettings">
<div class="mbsc-form-group-inset">
<label>
<input mbsc-input type="text" name="name" placeholder="Name" />
</label>
<label>
<input mbsc-input type="text" name="email" placeholder="Email" />
</label>
<label>
<input mbsc-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 ng-model="mylogin" mobiscroll-popup="loginSettings" mobiscroll-instance="login" class="mbsc-cloak">
<div mobiscroll-form="formSettings">
<div class="mbsc-form-group-inset">
<label>
<input mbsc-input type="text" name="email" placeholder="Email" />
</label>
<label>
<input mbsc-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 mbsc-button class="mbsc-btn-block" ng-click="login.hide()" style="background:#3c5c9a;color:#fff;">
<span class="mbsc-ic mbsc-ic-ion-social-facebook mbsc-pull-left"></span>
Log in with Facebook
</button>
<button mbsc-button class="mbsc-btn-block" ng-click="login.hide()" style="background:#28aae1;color:#fff;">
<span class="mbsc-ic mbsc-ic-fa-twitter mbsc-pull-left"></span>
Log in with Twitter
</button>
<button mbsc-button class="mbsc-btn-block" ng-click="login.hide()" 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>
</div>
.md-social-btn .mbsc-ic {
float: left;
}
Popup - Sheet list & grid
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form', 'mobiscroll-listview', 'mobiscroll-optionlist'])
.controller('demoController', ['$scope', function ($scope) {
$scope.actions = [{
header: true,
text: 'Actions'
}, {
text: 'Share',
icon: 'share'
}, {
text: 'Upload',
icon: 'cloud-upload'
}, {
text: 'Copy',
icon: 'copy3'
}, {
text: 'Print',
icon: 'print'
}];
$scope.options = [{
text: 'Facebook',
icon: 'ion-social-facebook'
}, {
text: 'Twitter',
icon: 'fa-twitter'
}, {
text: 'Google plus',
icon: 'fa-google-plus'
}, {
text: 'Email',
icon: 'ion-email'
}, {
text: 'Message',
icon: 'bubble'
}, {
text: 'Copy',
icon: 'copy3'
}]
$scope.listSettings = {
buttons: [],
display: 'bottom',
cssClass: 'mbsc-no-padding'
};
$scope.gridSettings = {
buttons: [],
display: 'bottom',
cssClass: 'mbsc-no-padding'
};
$scope.lvSettings = {
enhance: true,
swipe: false,
onItemTap: function (event, inst) {
var target = angular.element(event.target).clone();
target.children().remove();
var text = target.text();
mobiscroll.toast({
message: text + ' clicked'
});
}
}
$scope.opSettings = {
type: 'menu',
select: 'single',
snap: true,
itemWidth: 80,
display: 'inline',
cssClass: 'md-bottom-grid',
onItemTap: function (event, inst) {
mobiscroll.toast({
message: angular.element(event.target).text() + ' clicked'
});
}
}
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-form>
<div class="mbsc-form-group">
<div class="mbsc-btn-group-block">
<button mbsc-button ng-click="list.show()">Show sheet list</button>
<button mbsc-button ng-click="grid.show()">Show sheet grid</button>
</div>
</div>
</div>
<div ng-model="mylist" mobiscroll-popup="listSettings" mobiscroll-instance="list" class="mbsc-cloak">
<ul mobiscroll-listview="lvSettings" mobiscroll-data="actions" class="mbsc-cloak">
<li data-role="{{ item.header ? 'list-divider' : '' }}" data-icon="{{item.icon}}" ng-click="list.hide()">{{item.text}}</li>
</ul>
</div>
<div ng-model="mygird" mobiscroll-popup="gridSettings" mobiscroll-instance="grid" class="mbsc-cloak">
<ul mobiscroll-optionlist="opSettings" class="mbsc-cloak">
<li ng-repeat="item in options" data-id="{{$index}}" data-icon="{{item.icon}}" ng-click="grid.hide()">{{item.text}}</li>
</ul>
</div>
</div>
/* grid */
.md-bottom-grid.mbsc-ms-c {
border: 0;
}
Popup - Lists
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form', 'mobiscroll-listview', 'mobiscroll-optionlist'])
.controller('demoController', ['$scope', function ($scope) {
$scope.options = [{
text: 'Wifi',
icon: 'connection'
}, {
text: 'Location',
icon: 'location'
}, {
text: 'Sound',
icon: 'volume-medium'
}, {
text: 'Rotation',
icon: 'fa-rotate-left'
}, {
text: 'Bluetooth',
icon: 'ion-bluetooth'
}, {
text: 'Settings',
icon: 'cogs'
}, {
text: 'Reading',
icon: 'user4'
}, {
text: 'Data',
icon: 'download'
}]
$scope.horizontalSettings = {
display: 'bubble',
anchor: '#showHorizontal',
buttons: [],
cssClass: 'mbsc-no-padding'
};
$scope.verticalSettings = {
display: 'bubble',
anchor: '#showVertical',
buttons: [],
cssClass: 'mbsc-no-padding md-vertical-list'
};
$scope.checkSettings = {
display: 'bubble',
anchor: '#showChecklist',
buttons: [],
cssClass: 'mbsc-no-padding md-vertical-list'
};
$scope.opSettings = {
type: 'menu',
snap: true,
itemWidth: 80,
display: 'inline',
cssClass: 'md-no-border-grid',
onItemTap: function (event, inst) {
mobiscroll.toast({
message: angular.element(event.target).text() + ' clicked'
});
}
}
$scope.lvSettings = {
enhance: true,
swipe: false,
onItemTap: function (event, inst) {
var target = angular.element(event.target).clone();
target.children().remove();
var text = target.text();
mobiscroll.toast({
message: text + ' clicked'
});
}
}
$scope.checklistSettings = {
enhance: true,
swipe: false
}
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-form>
<div class="mbsc-form-group">
<div class="mbsc-btn-group-block">
<button mbsc-button id="showHorizontal" ng-click="horizontal.show()">Show horizontal list</button>
<button mbsc-button id="showVertical" ng-click="vertical.show()">Show vertical list</button>
<button mbsc-button id="showChecklist" ng-click="checklist.show()">Show checklist</button>
</div>
</div>
</div>
<div ng-model="myhorizontal" mobiscroll-popup="horizontalSettings" mobiscroll-instance="horizontal" class="mbsc-cloak">
<ul mobiscroll-optionlist="opSettings" class="mbsc-cloak">
<li ng-repeat="item in options" data-id="{{$index}}" data-icon="{{item.icon}}" ng-click="horizontal.hide()">{{item.text}}</li>
</ul>
</div>
<div ng-model="myvertical" mobiscroll-popup="verticalSettings" mobiscroll-instance="vertical" class="mbsc-cloak">
<ul mobiscroll-listview="lvSettings" mobiscroll-data="options">
<li data-icon="{{item.icon}}" ng-click="vertical.hide()">{{item.text}}</li>
</ul>
</div>
<div ng-model="mychecklist" mobiscroll-popup="checkSettings" mobiscroll-instance="checklist" class="mbsc-cloak">
<ul mobiscroll-listview="checklistSettings" mobiscroll-data="options">
<li data-icon="{{item.icon}}"><input mbsc-checkbox type="checkbox" />{{item.text}}</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
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form'])
.controller('demoController', ['$scope', function ($scope) {
$scope.settings = {
display: 'bubble',
anchor: '#link',
buttons: []
};
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-form="formSettings">
<div class="mbsc-padding">
<div class="mbsc-form-group">
<p>
Meet web developer <a id="link" style="cursor:pointer;text-decoration:underline;" ng-mouseover="popup.show()">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 ng-model="mypopup" mobiscroll-popup="settings" mobiscroll-instance="popup" ng-mouseleave="popup.hide()" 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>
Popup - Advanced widgets
mobiscroll.settings = {
theme: '',
themeVariant: '',
lang: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form', 'mobiscroll-datetime'])
.controller('demoController', ['$scope', function ($scope) {
$scope.day = 'today';
$scope.time = new Date();
$scope.popupSettings = {
cssClass: 'md-advanced-popup',
buttons: ['set', 'cancel'],
onSet: function () {
var day = $scope.day,
today = $scope.time,
tempToday = new Date(today.setSeconds(0)),
tomorrow = new Date(tempToday.setDate(tempToday.getDate() + 1)),
selectedTime = day == 'today' ? today : tomorrow;
$scope.$apply(function () {
$scope.selectedTime = selectedTime.toLocaleString()
});
}
};
$scope.timeSettings = {
display: 'inline',
steps: { minute: 15 },
onMarkupReady: function (ev, inst) {
ev.target.classList.add('mbsc-fr-bottom');
ev.target.classList.remove('mbsc-fr-inline');
}
};
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-form>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Select time</div>
<label> Date & Time
<input mbsc-input ng-model="selectedTime" ng-click="popupInst.show()" placeholder="Please select...">
</label>
</div>
</div>
<div ng-model="popup" mobiscroll-popup="popupSettings" mobiscroll-instance="popupInst" class="mbsc-cloak">
<div mobiscroll-form>
<label>
Today
<input mbsc-segmented type="radio" name="day" ng-model="day" value="today">
</label>
<label>
Tomorrow
<input mbsc-segmented type="radio" name="day" ng-model="day" value="tomorrow">
</label>
<div mobiscroll-time="timeSettings" ng-model="time"></div>
</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
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form'])
.controller('demoController', ['$scope', function ($scope) {
$scope.noButtonSettings = {
display: 'center',
buttons: []
};
$scope.defaultSettings = {
display: 'center'
};
$scope.customSettings = {
display: 'center',
buttons: [
'set',
{
text: 'Custom',
icon: 'checkmark',
handler: function (event, inst) {
inst.hide();
mobiscroll.toast({
message: ' Custom button clicked'
});
}
},
'cancel'
]
};
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-form>
<div class="mbsc-form-group">
<div class="mbsc-btn-group-block">
<button mbsc-button ng-click="noButton.show()">No button</button>
<button mbsc-button ng-click="defaultButton.show()">Default</button>
<button mbsc-button ng-click="customButtons.show()">Custom buttons</buttom>
</div>
</div>
</div>
<div ng-model="myNoButton" mobiscroll-popup="noButtonSettings" mobiscroll-instance="noButton" 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 ng-model="myDefaultButton" mobiscroll-popup="defaultSettings" mobiscroll-instance="defaultButton" 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 ng-model="myCustomButtons" mobiscroll-popup="customSettings" mobiscroll-instance="customButtons" 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>
</div>
Forms - Embedded forms
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
}
angular
.module('demoApp', ['mobiscroll-form', 'mobiscroll-cards', 'mobiscroll-popup'])
.controller('demoController', ['$scope', function ($scope) {
$scope.popupSettings = {
display: 'center',
cssClass: 'mbsc-no-padding',
buttons: [{
text: 'Submit',
handler: 'set'
},
'cancel'
]
}
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div class="mbsc-note mbsc-note-secondary">Embed forms in cards or any layout element. 👇</div>
<mobiscroll-card>
<mobiscroll-card-header>
<mobiscroll-card-title>Confirm Purchase</mobiscroll-card-title>
</mobiscroll-card-header>
<mobiscroll-card-content>
<label>
Name
<input data-label-style="inline" type="text" placeholder="Required" />
</label>
<label>
Card
<input data-label-style="inline" type="text" placeholder="Credit card number" />
</label>
<label>
Expiration
<input type="text" placeholder="Required" />
</label>
<label>
Security
<input data-label-style="inline" type="text" placeholder="3-digit CVV" />
</label>
</mobiscroll-card-content>
<div class="mbsc-btn-group-block mbsc-padding">
<button class="mbsc-btn-primary">Confirm</button>
</div>
</mobiscroll-card>
<div class="mbsc-note mbsc-note-secondary">You can also use embedded forms in pop-overs. 👇</div>
<div class="mbsc-btn-group-block">
<button mbsc-button ng-click="popup.show()">Show popover with form</button>
</div>
<div ng-model="mypopup" mobiscroll-popup="popupSettings" mobiscroll-instance="popup">
<div mobiscroll-form>
<div class="mbsc-form-group-inset">
<div class="mbsc-form-group-title">Personal information</div>
<label>
Name
<input mbsc-input data-label-style="inline" type="text" placeholder="John Doe" />
</label>
<label>
Email
<input mbsc-input data-label-style="inline" type="text" placeholder="john@email.com" />
</label>
<label>
Address
<input mbsc-input data-label-style="inline" type="text" placeholder="28 Darwin Street" />
</label>
<label>
City
<input mbsc-input data-label-style="inline" type="text" placeholder="Liverpool" />
</label>
</div>
</div>
</div>
</div>
Popup - Display modes
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form'])
.controller('demoController', ['$scope', function ($scope) {
$scope.bottomSettings = {
display: 'bottom',
buttons: [{
text: 'Ok',
handler: 'set'
},
'cancel'
]
};
$scope.topSettings = {
display: 'top',
buttons: [{
text: 'Ok',
handler: 'set'
},
'cancel'
]
};
$scope.centerSettings = {
display: 'center',
buttons: [{
text: 'Ok',
handler: 'set'
},
'cancel'
]
};
$scope.bubbleSettings = {
display: 'bubble',
anchor: '#show-bubble',
buttons: [{
text: 'Ok',
handler: 'set'
},
'cancel'
]
};
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-form>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Try different display modes</div>
</div>
<div class="mbsc-form-group mbsc-btn-group-block">
<button mbsc-button ng-click="bottomDemo.show()">Try bottom display mode</button>
<button mbsc-button ng-click="topDemo.show()">Try top display mode</button>
<button mbsc-button ng-click="centerDemo.show()">Try center display mode</button>
<button mbsc-button id="show-bubble" ng-click="bubbleDemo.show()">Try bubble display mode</button>
</div>
</div>
<div ng-model="myPopup" mobiscroll-popup="bottomSettings" mobiscroll-instance="bottomDemo" 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 ng-model="myPopupTop" mobiscroll-popup="topSettings" mobiscroll-instance="topDemo" 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 ng-model="myPopupCenter" mobiscroll-popup="centerSettings" mobiscroll-instance="centerDemo" 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 ng-model="myPopupBubble" mobiscroll-popup="bubbleSettings" mobiscroll-instance="bubbleDemo" 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>
Popup - Theming capabilities
The look and feel of the popup can be deeply customized. There are four levels of customization:
- Base themes: Choose between
Mobiscroll
,iOS
,Android Material
andWindows
. - Light or dark: Every theme has a
light
anddark
variant. Setting thethemeVariant
to'auto'
will switch based on system settings. - Custom themes: Use the theme builder to customize the colors and make it match your brand.
- Custom CSS: If you need further customization, the sky is the limit with CSS overrides.
You can also see how every example looks by changing the theme in the floating action bar on the right side.
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form'])
.controller('demoController', ['$scope', function ($scope) {
$scope.iosSettings = {
theme: 'ios',
themeVariant: 'light',
display: 'center',
touchUi: false
};
$scope.iosDarkSettings = {
theme: 'ios',
themeVariant: 'dark',
display: 'center',
touchUi: false
};
$scope.iosCustomSettings = {
theme: 'ios-gray',
display: 'center',
touchUi: false
};
$scope.materialSettings = {
theme: 'material',
themeVariant: 'light',
display: 'center',
touchUi: false,
};
$scope.materialDarkSettings = {
theme: 'material',
themeVariant: 'dark',
display: 'center',
touchUi: false
};
$scope.materialCustomSettings = {
theme: 'material-indigo',
display: 'center',
touchUi: false
};
$scope.windowsSettings = {
theme: 'windows',
themeVariant: 'light',
display: 'center',
touchUi: false
};
$scope.windowsDarkSettings = {
theme: 'windows',
themeVariant: 'dark',
display: 'center',
touchUi: false
};
$scope.windowsCustomSettings = {
theme: 'windows-yellow',
display: 'center',
touchUi: false
};
$scope.mobiscrollSettings = {
theme: 'mobiscroll',
themeVariant: 'light',
display: 'center',
touchUi: false
};
$scope.mobiscrollDarkSettings = {
theme: 'mobiscroll',
themeVariant: 'dark',
display: 'center',
touchUi: false
};
$scope.mobiscrollCustomSettings = {
theme: 'mobiscroll-lime',
display: 'center',
touchUi: false
};
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-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 mbsc-button ng-click="iosDemo.show()">iOS Light Theme</button>
<button mbsc-button ng-click="iosDarkDemo.show()">iOS Dark Theme</button>
<button mbsc-button ng-click="iosCustomDemo.show()">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 mbsc-button ng-click="materialDemo.show()">Material Light Theme</button>
<button mbsc-button ng-click="materialDarkDemo.show()">Material Dark Theme</button>
<button mbsc-button ng-click="materialCustomDemo.show()">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 mbsc-button ng-click="windowsDemo.show()">Windows Light Theme</button>
<button mbsc-button ng-click="windowsDarkDemo.show()">Windows Dark Theme</button>
<button mbsc-button ng-click="windowsCustomDemo.show()">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 mbsc-button ng-click="mobiscrollDemo.show()">Mobiscroll Light Theme</button>
<button mbsc-button ng-click="mobiscrollDarkDemo.show()">Mobiscroll Dark Theme</button>
<button mbsc-button ng-click="mobiscrollCustomDemo.show()">Mobiscroll Custom Theme</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div ng-model="iosPopup" mobiscroll-popup="iosSettings" mobiscroll-instance="iosDemo" 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 ng-model="iosDarkPopup" mobiscroll-popup="iosDarkSettings" mobiscroll-instance="iosDarkDemo" 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 ng-model="iosCustomPopup" mobiscroll-popup="iosCustomSettings" mobiscroll-instance="iosCustomDemo" 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 ng-model="materialPopup" mobiscroll-popup="materialSettings" mobiscroll-instance="materialDemo" 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 ng-model="materialDarkPopup" mobiscroll-popup="materialDarkSettings" mobiscroll-instance="materialDarkDemo" 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 ng-model="materialCustomPopup" mobiscroll-popup="materialCustomSettings" mobiscroll-instance="materialCustomDemo" 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 ng-model="windowsPopup" mobiscroll-popup="windowsSettings" mobiscroll-instance="windowsDemo" 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 ng-model="windowsDarkPopup" mobiscroll-popup="windowsDarkSettings" mobiscroll-instance="windowsDarkDemo" 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 ng-model="windowsCustomPopup" mobiscroll-popup="windowsCustomSettings" mobiscroll-instance="windowsCustomDemo" 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 ng-model="mobiscrollPopup" mobiscroll-popup="mobiscrollSettings" mobiscroll-instance="mobiscrollDemo" 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 ng-model="mobiscrollDarkPopup" mobiscroll-popup="mobiscrollDarkSettings" mobiscroll-instance="mobiscrollDarkDemo" 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 ng-model="mobiscrollCustomPopup" mobiscroll-popup="mobiscrollCustomSettings" mobiscroll-instance="mobiscrollCustomDemo" 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>
Popup - Event handlers
EVENTS FIRED:
mobiscroll.settings = {
theme: '',
themeVariant: '',
lang: ''
};
angular
.module('demoApp', ['mobiscroll-popup', 'mobiscroll-form'])
.controller('demoController', ['$scope', function ($scope) {
$scope.settings = {
theme: '',
themeVariant: '',
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
}
};
}]);
<div ng-app="demoApp" ng-controller="demoController">
<div mobiscroll-form>
<div class="mbsc-form-group">
<div class="mbsc-btn-group-block">
<button mbsc-button ng-click="popup.show()">Show popup</button>
</div>
</div>
</div>
<div ng-model="mypopup" mobiscroll-popup="settings" mobiscroll-instance="popup" 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>
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.
All
Framework license
Get all 36 components, including
Framework license
Get all 36 components, including
- 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
Framework license
Select the development framework you are using. Get all 36 components with the license.
- 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
Select the framework you are interested in
Use Javascript when building with plain and simple JS.
Use jQuery when you have jQuery already included or if you are building with jQuery Mobile.
Use AngularJS when building with Angular 1.x or Ionic 1.
Use Angular when building with Angular 2/4/5/6/7/8 or Ionic 2/3/4.
Use it when you are building your app or website with React.
Do you need additional support seats?
The license comes with one support seat. ( +$100/seat )
Add the source code?
What framework are you using?
We have to set you up with a trial for this to run 👍
Step 1.Install the Mobiscroll CLI from npm
$ 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
$ 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:
Run this command for Ionic 4 & Mobiscroll starter:
Step 3.Copy the code into your app.
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
Step 1.Install the Mobiscroll CLI from npm
$ 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
$ 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.
Step 4.Run ng serve in the root folder of your app 🎉
$ ng serve
And voilà, everything should be running smoothly.
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.
$ npm install
$ ionic serve
Let us know if we can help and enjoy!
Your password has been changed!
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! 👍
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.
$ npm install
$ ng serve --open
Let us know if we can help and enjoy! 👍
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.
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! 👍