Last active
February 9, 2018 00:21
-
-
Save cecilialee/ff9e318ab7ef24ef5420929b209fa147 to your computer and use it in GitHub Desktop.
How to add a simple notification. #r #shiny
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
) | |
}) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment