View source: R/context_calls.R
trigger_download | R Documentation |
Download table data
trigger_download(ctx, type = c("csv", "json", "xlsx"), file_name = NULL)
ctx |
A |
type |
File format. |
file_name |
File name. Set to |
If you want to support xlsx
downloads, you need to include
the sheetjs HTML dependency with tabulator(..., sheetjs = TRUE)
.
A tabulatorContext()
object
tabulatorContext("table") |>
trigger_download("csv", "table-data.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.