donaldaverill / meteor-package-jquery-toast

Toast for Meteor (jQuery)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Toast for Meteor (jQuery)

License:MIT License


Languages

Language:JavaScript 79.4%Language:HTML 17.6%Language:CSS 3.1%