inst/examples/progressClassName/ui.R

library(shiny)
library(shinyToastify)

CSS <- HTML(
  ".prgbar {",
  "  height: 20px;",
  "  background-color: firebrick;",
  "  background-image: linear-gradient(to right, firebrick, lime);",
  "}"
)

shinyUI(
  fluidPage(
    useShinyToastify(),
    tags$head(tags$style(CSS)),
    br(),
    helpText("This example illustrates the 'progressClassName' option."),
    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.