themeteorchef / bert

A client side, multi-style alerts system for Meteor.
185 stars 27 forks source link

hideDelay per notification #54

Open twentyfortysix opened 6 years ago

twentyfortysix commented 6 years ago

Hi there I know it is not a bug, but..

It would be nice to have a chance to set up a time (hideDelay) per notification. Some notifications are short some longer. In my case for example I have one longer notification and have to make all of them stay unnaturally long as there is only general hideDelay definition.

thanks for considering this feature.

cleverbeagle commented 6 years ago

Hey @twentyfortysix thanks for sharing. I'll keep this in mind. Bert is likely going to be rewritten and included in our UI framework, Fur, over at Clever Beagle: https://cleverbeagle.com/fur

RealHandy commented 5 years ago

+1 for this. In the meantime, @twentyfortysix, you can do this:

          Bert.defaults.hideDelay = 10000;
          Bert.alert( { message: error.reason, type: 'danger' } );
          Bert.defaults.hideDelay = 3500;