Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callbacks missing #161

Open
martinp-ccs opened this issue Oct 10, 2022 · 0 comments
Open

Callbacks missing #161

martinp-ccs opened this issue Oct 10, 2022 · 0 comments

Comments

@martinp-ccs
Copy link

Hi, is there a plan to implement callbacks such as there were in the original CodeSeven library shown below (mainly looking for OnClick() event)

// Define a callback for when the toast is shown/hidden/clicked
toastr.options.onShown = function() { console.log('hello'); }
toastr.options.onHidden = function() { console.log('goodbye'); }
toastr.options.onclick = function() { console.log('clicked'); }
toastr.options.onCloseClick = function() { console.log('close button clicked'); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant