reactable-extras-server | R Documentation |
Create reactable UI with server-side processing
reactable_extras_ui(id, width = "auto", height = "auto")
reactable_extras_server(id, data, total_pages = 4, sortable = TRUE, ...)
id |
element id |
width , height |
CSS unit ( |
data |
passed to |
total_pages |
number of pages |
sortable |
allow sorting by columns |
... |
other arguments to be passed to |
Arguments passed to reactable::reactable()
must not contain pagination
or showPagination
.
These are set to FALSE
. Pagination will be handled on the server-side.
reactable_extras_ui()
returns a custom UI for a server-side processed reactable
if (interactive()) {
library(shiny)
library(reactable)
library(reactable.extras)
shinyApp(
reactable_extras_ui("big_data"),
function(input, output, server) {
reactable_extras_server(
"big_data",
data = mtcars,
columns = list(
mpg = reactable::colDef(name = "Miles per Gallon"),
cyl = reactable::colDef(name = "Cylinders"),
disp = reactable::colDef(name = "Displacement")
)
)
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.