Get a default set of buttons to be included in the interactive table for clinical data.
getClinDTButtons(
type = c("copy", "csv", "excel", "pdf", "print"),
typeExtra = NULL,
opts = NULL
)
Nested list with default buttons
to be passed on to 'buttons' option in
the getClinDT
.
Character vector with type of buttons, among:
for export data:
'copy' (by default): copy data to clipboard
'csv' (by default): export selected data to a csv file
'excel' (by default): export selected data to an Excel file
'pdf' (by default): export data in a PDF file, in landscape format
'print' (by default): extract the data with the print function of the browser
to show/hide columns :
'colvis': include a collection of buttons
to show/hide specific columns.
Specific columns that should not be listed
should be defined in nonVisibleVar
in getClinDT
Character vector with type of button(s) that should be added to the default set of buttons.
List with extra opts for specific buttons. The list should be named with the button type.
Laure Cougnaud
The 'colvis' button doesn't display
the non visible columns.
These are defined internally with:
options = list(
columnDefs = list(
list(targets = [X], className = 'noVis')
)
)
with [X] the index of the column(s) in Javascript notation (starting from 0)