datatable: DataTable

Description Usage Examples

Description

DataTable

Usage

1
2
3
4
5
6
7
8
datatable(data, options = list(), class = "display",
  callback = JS("return table;"), rownames, colnames, container,
  caption = NULL, filter = c("none", "bottom", "top"), escape = TRUE,
  style = "default", width = NULL, height = NULL, elementId = NULL,
  fillContainer = getOption("DT.fillContainer", NULL),
  autoHideNavigation = getOption("DT.autoHideNavigation", NULL),
  selection = c("multiple", "single", "none"), extensions = list(),
  plugins = NULL)

Examples

1
2
3
4
5
6
7
8
datatable(iris)

datatable(head(iris), class = 'cell-border stripe')

iris2 = iris[c(1:10, 51:60, 101:110), ]
datatable(iris2, filter = 'top', options = list(
  pageLength = 5, autoWidth = TRUE
))

saurfang/pkgdown.example documentation built on May 29, 2019, 1:27 p.m.