“JQuery Alarmify” Code-Antworten

JQuery Alarmify


/*
 * @title {String or DOMElement} The dialog title.
 * @message {String or DOMElement} The dialog contents.
 *
 * alertify.alert(title, message);
 *
 */
 alertify.alert('Alert Title', 'Alert Message!');
Mushy Mockingbird

JQuery Alarmify


/*
 * @title {String or DOMElement} The dialog title.
 * @message {String or DOMElement} The dialog contents.
 * @onok {Function} Invoked when the user clicks OK button or closes the dialog.
 *
 * alertify.alert(title, message, onok);
 *
 */
alertify.alert('Alert Title', 'Alert Message!', function(){ alertify.success('Ok'); });
Mushy Mockingbird

JQuery Alarmify


/*
 * @message {String or DOMElement} The dialog contents.
 * @onok {Function} Invoked when the user clicks OK button or closes the dialog.
 *
 * alertify.alert(message, onok);
 *
 */
 alertify.alert('Alert Message!', function(){ alertify.success('Ok'); });
Mushy Mockingbird

JQuery Alarmify


//get the closable setting value.
var closable = alertify.alert().setting('closable');
//grab the dialog instance using its parameter-less constructor then set multiple settings at once.
alertify.alert()
  .setting({
    'label':'Agree',
    'message': 'This dialog is : ' + (closable ? ' ' : ' not ') + 'closable.' ,
    'onok': function(){ alertify.success('Great');}
  }).show();
Mushy Mockingbird

Ähnliche Antworten wie “JQuery Alarmify”

Fragen ähnlich wie “JQuery Alarmify”

Weitere verwandte Antworten zu “JQuery Alarmify” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen