A wrapper around the `toastr` JavaScript library that uses our preferred default argument values.
showToast(
type,
message,
title = NULL,
keepVisible = FALSE,
.options = list(),
session = shiny::getDefaultReactiveDomain()
)length 1 character vector. Valid values are "success", "error", "warning", and "info"
the toast message
the toast title. Defaults to NULL
a logical. If TRUE, the toast notification will remain visible until removed with hideToast. If FALSE, the default, the toast will automatically hide once the "showDuration" option has elapsed.
other options to pass to the toastr JavaScript library. See
https://codeseven.github.io/toastr/demo.html for a full demo of options. Valid options are "positionClass",
"progressBar", "timeOut", "closeButton", "newestOnTop", "preventDuplicates", "showDuration", "hideDuration",
"extendedTimeOut", "showEasing", "hideEasing", "showMethod", & "hideMethod"
the Shiny session. Defaults to shiny::getDefaultReactiveDomain().
`invisible()`