Closed mauleous closed 6 years ago
@mauleous I'll change it so that we can set default options for toast message animation.
@mauleous I added an option uiOptions.toast.defaults
uiOptions : {
toast : {
defaults : {
// to show
showMethod: 'fadeIn', // fadeIn, slideDown, and show are
built into jQuery
showDuration: 300, // milliseconds
showEasing: 'swing', // swing and linear are built into
jQuery
// timeout to hide
timeOut: 3000,
// to hide
hideMethod: 'fadeOut',
hideDuration: 1500,
hideEasing: 'swing'
}
}
}
Thanks! 👍
Cool! That would be even more convenient~ Thanks @nao-pon ! 👍
Hi,
I just wanted to share how I speed up toaster animation in elFinder.
For example, there is this toaster notification when creating a new folder. I was looking into speeding up the animation speed of such toaster notification.
How I did this is:
Define a new '$.fn.elfinderToastCustom' that runs the original 'elfindertoast' function
I defined a new 'toast()' function that runs the new '$.fn.elfinderToastCustom'
I overwrote elFinder's toast function -> 'instance.toast = toast;'
If there is a better way to do this, please do let me know. I hope this helps those who are looking to do the same thing :)