bert icon indicating copy to clipboard operation
bert copied to clipboard

Add support for setting autoHide in advanced mode

Open scholtzm opened this issue 10 years ago • 5 comments

Hello,

Is it possible to have a dismiss button? Something that prevents bert alert from just disappearing on its own.

Perhaps I need to use custom template (?), I just haven't figured out how.

scholtzm avatar Oct 25 '15 20:10 scholtzm

Howdy! The dismiss button was removed in v2.0 in favor of making Bert dismissible by click anywhere on the alert message (this is similar to OS style alerts).

themeteorchef avatar Oct 25 '15 20:10 themeteorchef

That makes sense. However, how do I disable the auto-hiding feature? Should I just set hideDelay to a very high value?

scholtzm avatar Oct 25 '15 21:10 scholtzm

Hmm, that would be the best way now as I stripped the option to set autoHide in v2 as well. Something like Bert.defaults.hideDelay = 99999 should do the trick.

themeteorchef avatar Oct 27 '15 01:10 themeteorchef

Perhaps this value could be allowed in the "advanced" mode (in the next update). :+1:

scholtzm avatar Oct 27 '15 07:10 scholtzm

Sure :) marking as a feature now.

themeteorchef avatar Oct 29 '15 14:10 themeteorchef