showToast: show toast message

Description Usage Arguments Value

View source: R/showToast.R

Description

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

Usage

1
2
3
4
5
6
7
8
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()'


shinyFeedback documentation built on Sept. 24, 2021, 5:07 p.m.