monthFeedbackUI <- function(id) {
textOutput(NS(id, "feedback"))
}
monthFeedbackServer <- function(id, month) {
stopifnot(is.reactive(month))
moduleServer(id, function(input, output, session) {
output$feedback <- renderText({
if (month() == "October") {
"You picked a great month!"
} else {
"Eh, you could do better."
}
})
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.