You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
first of all thank you guys
I wonder if there is a way or function to dismiss the toas from outside the toast,
like the close button but external to th toast
If there is, please add the function to the documentation and some example if posible
Thanks !!
The text was updated successfully, but these errors were encountered:
I would also like something similar.. I was wondering if you could close the toast by clicking on it? (as opposed to waiting for it to close automatically or clicking on a small close button).
I tried doing the following:
Toastify({
text: "This is a toast",
duration: 2000,
close: false,
stopOnFocus: true,
onClick: function () {
this.dismiss();
this.hide();
this.hideToast();
this.destroy();
this.close();
this.dispose();
},
}).showToast();
but there is no dismiss function, no hide/hideToast/destroy/close/dispose (like OP wants as well). If the function was there then the OP could probably reference the instance and call the method on it.. In my case I just want the toast the close on click...
Hi,
first of all thank you guys
I wonder if there is a way or function to dismiss the toas from outside the toast,
like the close button but external to th toast
If there is, please add the function to the documentation and some example if posible
Thanks !!
The text was updated successfully, but these errors were encountered: