Cogoport/cogo-toast

Close toast through onClick function

hasnatnayeem opened this issue · 1 comments

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.

cogoToast.success('This is a success message.', {
	onClick: (hide) => {
		hide();
	},
});