Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleOther samples
// non-modal, notifications
akioma.notification({ type: "success", text:"success message!" });

akioma.notification({ type: "error", text:"success message!" });

akioma.notification({ type: "info", text:"success message!" });

akioma.notification({ type: "warn", text:"success message!" });

// modal messages different types

akioma.message({ type: "success", text:"You did it!" });

akioma.message({ type: "info", text:"You did it!" });

akioma.message({ type: "warning", text:"You did it!" });

akioma.message({ type: "error", text:"You did it!" });

akioma.message({ type: "question", text:"You did it!" });
Code Block
languagejs
titleExample with custom buttons and callback support:
akioma.swat.Message.message({ 
	type: "success", 
	text:"Information was saved successfully.", 
	modal: true, 
	buttons: {
    continue: {
           text: "Continue",
           value: 1,
           visible: true,
           className: "",
           closeModal: true,
  	},
  	stop: {
          text: "Stop",
          value: 2,
          visible: true,
          className: "",
          closeModal: true
  	}
}, callback: function(val){ 
console.log(val); 
}});