output.data.1 <- function(list_reactivevalue,i) {
DT::renderDataTable(
datatable(list_reactivevalue[[i]],
rownames = FALSE,
options = list(
dom = "t"
)
) %>%
formatCurrency(
columns = names(list_reactivevalue[[i]])[sapply(list_reactivevalue[[i]], is.numeric)],
interval = 3,
mark = ".",
digits = 0,
currency = "",
dec.mark = ","
)
#%>%
# formatDate(
# columns = names(list_reactivevalue[[i]])[sapply(list_reactivevalue[[i]], is.Date)],
# "toLocaleDateString",
# params = list("de-CH")
# )
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.