akioma.swat.Message.message({ title: "Success", type: "success", text: "Information was saved", expire: 5000 }); |
akioma.swat.Message.message({ type: "success", text:"Information was saved", modal: true}); |
akioma.swat.Message.message({ type: "success", text:"Are you sure?", modal: true, buttons: ['Yes','No']}); |
akioma.message({ type: 'info', text: 'Some modal text content here' }); |
akioma.notification({ type: 'info', text: 'Some modal text content here' }); |
// 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!" }); |
akioma.swat.Message.message({ type: "success", text:"One of 10 excel files was uploaded successfully.", modal: true, buttons: ["Continue", "Stop"], callback: (val) => { console.log(val); } }); /* in the above example, if you click on the Continue button, it will return NULL, if you click on the Stop button, it will return True !!! We recommend to use the example from below, to define the full behaviour of the buttons and the values returned by each button on click !!! */?? akioma.swat.Message.message({ type: "success", text:"Are you sure?", modal: true, buttons: { replyyes: { text: "Yes", value: "yes was pressed", visible: true, className: "", closeModal: true, }, replyno: { text: "No", value: "no was pressed", visible: true, className: "", closeModal: true } }, callback: function(val){ console.log(val); }}); akioma.swat.Message.message({ type : "info", closeOnEsc: false, // default is set to TRUE closeOnClickOutside: false, // default is set to FALSE text : result.MessageText, modal : true }); |