preview_datatable: Preview data in a datatable

Description Usage Arguments See Also Examples

View source: R/preview.R

Description

Preview data in a datatable

Usage

1
preview_datatable(data, fun = DT::datatable, ui = NULL, ...)

Arguments

data

A data frame object.

fun

A function that transforms the data into a datatable. It defaults to datatable.

ui

A shiny.tag object to include in the UI function.

...

Additional parameters to pass to fun.

See Also

Other preview: preview_component, preview_module

Examples

1
2
3
4
5
6
7
8
## Not run: 
 preview_datatable(mtcars,
   style = 'bootstrap',
   width = '100%',
   extension = 'Responsive'
 )

## End(Not run)

ramnathv/satin documentation built on March 7, 2020, 2:03 a.m.