safe_alert: Show Alert in Shiny apps

Description Usage Arguments

View source: R/shiny.R

Description

Show Alert in Shiny apps

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
safe_alert(
  title,
  message,
  type = c("warning", "error", "success", "info"),
  onConfirm = NULL,
  inputId = "shinyalert",
  closeOnEsc = FALSE,
  closeOnClickOutside = FALSE,
  html = FALSE,
  showCancelButton = FALSE,
  confirmButtonText = "OK",
  session = shiny::getDefaultReactiveDomain(),
  fancy = TRUE
)

Arguments

title, message

title and message of the alert

type

options are "warning", "error", "success", and "info"

onConfirm

R function to call upon confirmation

inputId

input ID

closeOnEsc, closeOnClickOutside

whether to easy close the modal

html

whether not to escape the message

showCancelButton

whether to show dismiss button

confirmButtonText

text of confirm button

session

shiny session

fancy

whether try to use fancy version


dipterix/raveutils documentation built on July 6, 2020, 12:24 a.m.