datatable_default | R Documentation |
DT Datatable with some helpful defaults
datatable_default(
data,
rownames = FALSE,
options = list(dom = "Blfrtip", buttons = list("copy", "excel", "csvHtml5", list(extend
= "csvHtml5", text = "Full CSV", filename = "data_full", exportOptions =
list(modifier = list(page = "all")))), responsive = TRUE, lengthMenu = c(10, 25, 50,
75, 100), lengthChange = TRUE, pageLength = 10),
filter = list(position = "top", clear = TRUE, plain = FALSE),
width = "100%",
height = "auto",
extensions = "Buttons",
style = "bootstrap4",
elementId = NULL,
add_options,
add_extensions,
...
)
data |
a data object (either a matrix or a data frame) |
rownames |
|
options |
a list of initialization options (see
https://datatables.net/reference/option/); the character options
wrapped in |
filter |
whether/where to use column filters; |
width , height |
Width/Height in pixels (optional, defaults to automatic sizing) |
extensions |
a character vector of the names of the DataTables extensions (https://datatables.net/extensions/index) |
style |
either |
elementId |
An id for the widget (a random string by default). |
add_options |
Options to add to the existing defaults |
add_extensions |
Extensions to add to the existing defaults |
... |
Arguments passed on to
|
(shiny.tag)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.