cecilialee
2/8/2018 - 3:02 PM

Notifications in Shiny

How to add a simple notification. #r #shiny

library(shiny)

shinyApp(
  ui = fluidPage(
    actionButton("show", "Show")
  ),
  server = function(input, output) {
    observeEvent(input$show, {
      showNotification(
        "Form Submitted",
        duration = 1, 
        closeButton = input$close,
        type = "default"
      )
    })
  }
)