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

add removeToast() and clearToast() functions #43

Closed
merlinoa opened this issue Jul 21, 2020 · 2 comments
Closed

add removeToast() and clearToast() functions #43

merlinoa opened this issue Jul 21, 2020 · 2 comments
Assignees

Comments

@merlinoa
Copy link
Owner

merlinoa commented Jul 21, 2020

These functions should call the toastr.remove() and toastr.clear() methods in the toastr JavaScript library. They are useful for removing toasts messages after something happens. e.g. if you set the "timeOut' and "extendedTimeOut" options to 0, the toast will not be removed until either the user clicks the toast or it is removed with one of these methods.

@merlinoa merlinoa changed the title add toastRemove() and toastClear() functions add removeToast() and clearToast() functions Jul 21, 2020
@phoward38
Copy link
Collaborator

phoward38 commented Jul 21, 2020

  • Add keep_visible argument to showToast, set to FALSE as default
    • When keep_visible=TRUE, overwrites timeOut & extendedTimeOut values in list for .options arg & sets to 0

@phoward38
Copy link
Collaborator

Completed & created PR #44

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

2 participants