Skip to contents

Show or hide a bs_toast() from server code.

Usage

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

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

Arguments

id

Toast id (namespaced automatically inside modules).

session

The Shiny session.

Value

Invisibly NULL, called for its side effect.

Examples

if (interactive()) show_bs_toast("hello")
if (interactive()) hide_bs_toast("hello")