fourquet:jquery-toast

v2.1.2_1Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Toast for Meteor (jQuery)

An extension of chrismbeckett:toastr with a new namespace, defaults and removal from window.

Install

meteor add fourquet:jquery-toast

Usage

Example:

if (Meteor.isClient) {
  Template.hello.events({
    'click button': function () {
      Toast.info('Toast!!!!');
    }
  });
}

Defaults

Toast.options = {
  closeButton: true,
  progressBar: true,
  positionClass: 'toast-bottom-full-width',
  showEasing: 'swing',
  hideEasing: 'linear',
  showMethod: 'fadeIn',
  hideMethod: 'fadeOut',
  timeOut: 1500,
};

Version

2.1.2_1

License

MIT