create_info_box <- function(config, data){
shinydashboard::infoBox(
title = config$title,
value = add_distinct_values_from_columns(
data[["tables"]][[config$table]],
config$columns
),
icon = shiny::icon(config$icon),
color = "light-blue",
fill = TRUE
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.