merlinoa/shinyFeedback

add `removeToast()` and `clearToast()` functions

Closed this issue · 2 comments

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.

  • 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

Completed & created PR #44