An extension of chrismbeckett:toastr with a new namespace, defaults and removal from window
.
meteor add fourquet:jquery-toast
Example:
if (Meteor.isClient) {
Template.hello.events({
'click button': function () {
Toast.info('Toast!!!!');
}
});
}
Toast.options = {
closeButton: true,
progressBar: true,
positionClass: 'toast-bottom-full-width',
showEasing: 'swing',
hideEasing: 'linear',
showMethod: 'fadeIn',
hideMethod: 'fadeOut',
timeOut: 1500,
};
2.1.2_1
MIT