|
|
@@ -30,8 +30,8 @@ datatable(data, ...) |
|
|
|
|
|
|
|
\method{datatable}{desctable}( |
|
|
|
data, |
|
|
|
options = list(paging = F, info = F, search = list(), dom = "Brtip", fixedColumns = T, |
|
|
|
fixedHeader = T, buttons = c("copy", "excel")), |
|
|
|
options = list(paging = F, info = F, search = list(), dom = "Brtip", fixedColumns = |
|
|
|
T, fixedHeader = T, buttons = c("copy", "excel")), |
|
|
|
class = "display", |
|
|
|
callback = DT::JS("return table;"), |
|
|
|
caption = NULL, |
|
|
@@ -115,11 +115,12 @@ when the number of total records is less than the page size.} |
|
|
|
\item{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 \code{list(mode = 'multiple', |
|
|
|
selected = c(1, 3, 8), target = 'row')} to pre-select rows; the element |
|
|
|
selected = c(1, 3, 8), target = 'row', selectable = c(-2, -3))} to |
|
|
|
pre-select rows and control the selectable range; the element |
|
|
|
\code{target} in the list can be \code{'column'} to enable column |
|
|
|
selection, or \code{'row+column'} to make it possible to select both rows |
|
|
|
and columns (click on the footer to select columns), or \code{'cell'} to |
|
|
|
select cells} |
|
|
|
select cells. See details section for more info.} |
|
|
|
|
|
|
|
\item{extensions}{a character vector of the names of the DataTables |
|
|
|
extensions (\url{https://datatables.net/extensions/index})} |
|
|
|