showToast {shinyFeedback}R Documentation

show toast message

Description

A wrapper around the 'toastr' JavaScript library that uses our preferred default argument values.

Usage

showToast(
  type,
  message,
  title = NULL,
  keepVisible = FALSE,
  .options = list(),
  session = shiny::getDefaultReactiveDomain()
)

Arguments

type

length 1 character vector. Valid values are "success", "error", "warning", and "info"

message

the toast message

title

the toast title. Defaults to NULL

keepVisible

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.

.options

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"

session

the Shiny session. Defaults to shiny::getDefaultReactiveDomain().

Value

'invisible()'


[Package shinyFeedback version 0.4.0 Index]