##----------------------------------------------------------------------------##
## Select group.
##----------------------------------------------------------------------------##
##----------------------------------------------------------------------------##
## UI element to select which group should be shown.
##----------------------------------------------------------------------------##
output[["groups_select_group_UI"]] <- renderUI({
tagList(
div(
HTML('<h3 style="text-align: center; margin-top: 0"><strong>Choose a grouping variable:</strong></h2>')
),
fluidRow(
column(2),
column(8,
selectInput(
"groups_selected_group",
label = NULL,
choices = getGroups(),
width = "100%"
)
),
column(2)
)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.