Download table data
Usage
trigger_download(ctx, type = c("csv", "json", "xlsx"), file_name = NULL)
Arguments
- ctx
A
tabulatorContext()
object.- type
File format.
- file_name
File name. Set to
"data.{type}"
iffile_name = NULL
.
Value
A tabulatorContext()
object
Details
If you want to support xlsx
downloads, you need to include
the sheetjs HTML dependency with tabulator(..., sheetjs = TRUE)
.
Examples
# \donttest{
tabulatorContext("table") |>
trigger_download("csv", "table-data.csv")
# }