indicadoresServer = function(id, rvs) {
moduleServer(id, function(input, output, session) {
observeEvent(input$indicador, {
if (input$indicador == "Razon") {
shinyjs::show("razon")
shinyjs::hide("univariado")
} else {
shinyjs::hide("razon")
shinyjs::show("univariado")
}
if (input$indicador == "Total") {
shinyjs::show("total_categorias")
} else {
shinyjs::hide("total_categorias")
}
})
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.