Sha256: 4d865be9c2c8cc88bbbd97b08cca8ff13ad082fbf608538f9c98206f85b0010e

Contents?: true

Size: 924 Bytes

Versions: 6

Compression:

Stored size: 924 Bytes

Contents

function notify(notice){
  new Noty({
    text: notice,
    layout: 'bottomCenter',
    theme: 'relax', // mint, sunset, relax, nest, metroui, semanticui, light, bootstrap-v3, bootstrap-v4
    closeWith: ['click', 'button'], // ['click', 'button', 'hover', 'backdrop'] // backdrop click will close all notifications
    timeout: 2000, // [integer|boolean] delay for closing event in milliseconds. Set false for sticky notifications
    type: 'notification', // success, error, warning, information, notification
    // modal: true, // [boolean] if true adds an overlay
    killer: true, // [boolean] if true closes all notifications and shows itself
    progressBar: true, // default true
    animation: {
      open: 'animated bounceIn', // Animate.css class names
      close: 'animated flipOutX', // Animate.css class names
      easing: 'swing',
      speed: 500 // opening & closing animation speed
    }
  }).show();
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
keppler-2.0.7 installer/core/app/assets/javascripts/admin/notification.js
keppler-2.0.6 installer/core/app/assets/javascripts/admin/notification.js
keppler-2.0.5 installer/core/app/assets/javascripts/admin/notification.js
keppler-2.0.4.p1 installer/core/app/assets/javascripts/admin/notification.js
keppler-2.0.4.pre.p1 installer/core/app/assets/javascripts/admin/notification.js
keppler-2.0.4 installer/core/app/assets/javascripts/admin/notification.js