useToastr: Initialize the toastr notification engine

View source: R/shinytoastr.R

useToastrR Documentation

Initialize the toastr notification engine

Description

Call this function once, from the top of your Shiny UI definition. Here is an example:

  ui <- shinyUI(fluidPage(
    useToastr(),
    pageWithSidebar(
      headerPanel("Header"),
      sidebarPanel(
        ...
      ),
      mainPanel(
        ...
      )
    )
  ))

Usage

useToastr()

Value

The HTML tags to put into the <head> of the HTML file.

See Also

toastr_success, toastr_info, toastr_warning, toastr_error

Examples

## See above

shinytoastr documentation built on Aug. 31, 2023, 1:09 a.m.