#' @importFrom shinyhelper helper
ui_group_edges <- function(id) {
ns <- NS(id)
helper(
selectInput(
inputId = ns("group"),
label = "Group edges by",
choices = add_none(ag_data_group_labels),
multiple = FALSE
),
type = "markdown",
content = "label_group"
)
}
#' @importFrom purrr when
server_group_edges <- function(id) {
moduleServer(id, function(input, output, session) {
reactive({
when(
input[["group"]],
. == ag_option("str_null") ~ "",
~ .
)
})
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.