reactable-extras-server {reactable.extras} | R Documentation |
Create reactable UI with server-side processing
Description
Create reactable UI with server-side processing
Usage
reactable_extras_ui(id, width = "auto", height = "auto")
reactable_extras_server(id, data, total_pages = 4, sortable = TRUE, ...)
Arguments
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 |
Details
Arguments passed to reactable::reactable()
must not contain pagination
or showPagination
.
These are set to FALSE
. Pagination will be handled on the server-side.
Value
reactable_extras_ui()
returns a custom UI for a server-side processed reactable
Examples
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")
),
rows_per_page = 7
)
}
)
}
[Package reactable.extras version 0.2.0 Index]