| print_dt | R Documentation |
DT::datatable() WrapperDT::datatable() Wrapper
print_dt(
data,
escape = FALSE,
download_buttons = TRUE,
caption = NULL,
rownames = FALSE,
pageLength = 10,
autoWidth = TRUE,
colnames,
filter = c("top", "none", "bottom"),
scrollX = TRUE,
style = "auto",
class = "display",
container,
width = NULL,
height = NULL,
elementId = NULL,
fillContainer = getOption("DT.fillContainer", NULL),
autoHideNavigation = getOption("DT.autoHideNavigation", NULL),
selection = c("multiple", "single", "none"),
plugins = NULL,
editable = FALSE
)
data |
a data object (either a matrix or a data frame) |
escape |
whether to escape HTML entities in the table: |
download_buttons |
Include download buttons at the top of the table?, Default: TRUE |
caption |
the table caption; a character vector or a tag object
generated from |
rownames |
|
colnames |
if missing, the column names of the data; otherwise it can be
an unnamed character vector of names you want to show in the table header
instead of the default data column names; alternatively, you can provide a
named numeric or character vector of the form |
filter |
whether/where to use column filters; |
scrollX |
Fix the width of the width of the table?, Default: TRUE |
style |
either |
class |
the CSS class(es) of the table; see https://datatables.net/manual/styling/classes |
container |
a sketch of the HTML table to be filled with data cells; by
default, it is generated from |
width |
Width/Height in pixels (optional, defaults to automatic sizing) |
height |
Width/Height in pixels (optional, defaults to automatic sizing) |
elementId |
An id for the widget (a random string by default). |
fillContainer |
|
autoHideNavigation |
|
selection |
the row/column selection mode (single or multiple selection
or disable selection) when a table widget is rendered in a Shiny app;
alternatively, you can use a list of the form |
plugins |
a character vector of the names of DataTables plug-ins
(https://rstudio.github.io/DT/plugins.html). Note that only those
plugins supported by the |
editable |
|
datatable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.