mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-06-30 06:12:08 -06:00
Added alert functionality to IonPopup
This commit is contained in:
parent
7e8a826f7d
commit
8dc91bc4a4
1 changed files with 18 additions and 0 deletions
|
|
@ -37,6 +37,24 @@ IonPopup = {
|
|||
$popup.addClass('popup-showing active');
|
||||
},
|
||||
|
||||
alert: function (options) {
|
||||
IonPopup.show({
|
||||
title: options.title,
|
||||
subTitle: options.subtitle,
|
||||
template: options.template,
|
||||
templateName: options.templateName,
|
||||
buttons: [
|
||||
{
|
||||
text: options.okText ? options.okText : 'Ok',
|
||||
type: options.okType ? options.okType : 'button-positive',
|
||||
onTap: function() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
},
|
||||
|
||||
close: function () {
|
||||
var $backdrop = $(this.view.firstNode());
|
||||
var $popup = $backdrop.find('.popup-container');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue