inst/examples/className/ui.R

library(shiny)
library(shinyToastify)

CSS <- HTML(
  ".toaststyle {",
  "  border-style: solid;",
  "  border-color: orange;",
  "  border-width: 7px;",
  "}"
)

shinyUI(
  fluidPage(
    useShinyToastify(),
    tags$head(tags$style(CSS)),
    br(),
    helpText(
      "This example illustrates the 'className' option.",
      "Alternatively, you can use the 'style' option:"
    ),
    tags$p(tags$code(
      'style = list(borderStyle = "solid", borderColor = "orange", borderWidth = "7px")'
    )),
    br(),
    actionButton("btn", "Show toast", class = "btn-primary btn-lg")
  )
)

Try the shinyToastify package in your browser

Any scripts or data that you put into this service are public.

shinyToastify documentation built on July 31, 2021, 5:06 p.m.