realrashid / sweet-alert

A BEAUTIFUL, RESPONSIVE, CUSTOMIZABLE, ACCESSIBLE (WAI-ARIA) REPLACEMENT FOR JAVASCRIPT'S POPUP BOXES FOR LARAVEL
https://realrashid.github.io/sweet-alert
MIT License
1.13k stars 167 forks source link

Add timerProgressBar to config #125

Closed andreasmatuszewski closed 2 years ago

andreasmatuszewski commented 2 years ago

Could you please add 'timerProgressBar' to config file? I want to set this feature globally.

You could just add in Toaster.php into the setDefaultConfig() function (maybe i forgot something): $this->config = [ ... 'timerProgressBar' => config('sweetalert.timer_progress_bar'), ...];

I would appreciate this change!

andreasmatuszewski commented 2 years ago

https://github.com/andreasmatu/sweet-alert/commit/4cffe1747876fb16c0107881bd62b93d46e608ae https://github.com/andreasmatu/sweet-alert/commit/e1f92f6c4d3781794ea0bfa121b30829f1bd8c6d

realrashid commented 2 years ago

FIxed!