toastToggle: Toast Toggle

toastToggleR Documentation

Toast Toggle

Description

Show or hide a toast.

Usage

toast_show(
  id,
  header = NULL,
  body = NULL,
  animation = TRUE,
  auto_hide = TRUE,
  delay = 5000L,
  session = shiny::getDefaultReactiveDomain()
)

toast_hide(id, session = shiny::getDefaultReactiveDomain())

Arguments

id

ID of toast() to toggle.

header, body

Header and body of the toast to replace existing content.

animation

Whether to animate the toast.

auto_hide

Whether to automatically hide the toast after delay.

delay

Milliseconds after which to hide the toast (if auto_hide = TRUE).

session

A valid shiny session.


JohnCoene/bsutils documentation built on June 15, 2024, 3:21 a.m.