| dt2_buttons | R Documentation |
Configure DataTables Buttons and (optionally) move them to a custom container
dt2_buttons(
options = list(),
buttons = c("copyHtml5", "csvHtml5", "excelHtml5", "pdfHtml5", "print"),
target = NULL
)
options |
A DT2 |
buttons |
Character vector with button names (e.g. |
target |
Optional CSS selector (e.g. |
Requires the Buttons extension. For CSV/Excel/PDF you also need JSZip and pdfMake (incl. vfs_fonts).
Prefer dt2_use_buttons() for the common case: it takes simple button ids,
styles them with a CSS class, and places them in the layout. Use
dt2_buttons() when you need full button objects or want to move the
rendered buttons into a custom container via target.
The modified options list.
dt2_use_buttons()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.