#' test UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_test_ui <- function(id){
ns <- NS(id)
tagList(
selectInput(ns('tutu'), 'tutu', choices = 1:3)
)
}
#' test Server Function
#'
#' @noRd
mod_test_server <- function(id){
moduleServer(id, function(input, output, session){
ns <- session$ns
observeEvent(input$tutu,{
print(input$tutu)
})
})
}
## To be copied in the UI
# mod_test_ui("test_ui_1")
## To be copied in the server
# callModule(mod_test_server, "test_ui_1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.