PHP Classes

File: apps/codiad/js/message.js

Recommend this page to a friend!
  Classes of Mark Richards   CliqonV4   apps/codiad/js/message.js   Download  
File: apps/codiad/js/message.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CliqonV4
Framework with modules to build Web applications
Author: By
Last change:
Date: 5 years ago
Size: 1,048 bytes
 

Contents

Class file image Download
(function(global, $){ var codiad = global.codiad; ////////////////////////////////////////////////////////////////////// // User Alerts / Messages ////////////////////////////////////////////////////////////////////// codiad.message = { init: function() {}, _showMessage: function(toastType, message, options){ options = options || {}; options.text = message; options.type = toastType $().toastmessage('showToast', options); }, success: function(m, options) { this._showMessage('success', m, options); }, error: function(m, options) { this._showMessage('error', m, options); }, warning: function(m, options) { this._showMessage('warning', m, options); }, notice: function(m, options){ this._showMessage('notice', m, options); }, hide: function() { $(".toast-item-wrapper").remove(); } }; })(this, jQuery);