Closed hasnatnayeem closed 5 years ago
Is there any way I can close the toast when user clicks on it?
Merged in #17
Upgrade to v3.1.0. hide function passed as a param in onClick.
hide
onClick
cogoToast.success('This is a success message.', { onClick: (hide) => { hide(); }, });
Is there any way I can close the toast when user clicks on it?