Possible to implement some type of server side rendering similar to data.table R package does? Below example takes some time to render.
library(shiny)
library(reactable)
ui <- fluidPage(
titlePanel("Reactable"),
reactableOutput("table")
)
server <- function(input, output, session) {
data <- reactive({
f <- data.frame(Sepal.Length=rep(iris$Sepal.Length,100),
Sepal.Width=rep(iris$Sepal.Width,100),
Petal.Length=rep(iris$Petal.Length,100),
Petal.Width=rep(iris$Petal.Width,100),
Species=rep(iris$Species,100),
stringsAsFactors = FALSE)
return(f)
})
output$table <- renderReactable({
reactable(data(),
filterable = TRUE,
sortable = TRUE,
resizable = TRUE,
onClick = "expand",
highlight = TRUE,
paginationType = "jump",
details = colDef(
name = "More",
details = function(index){
tabsetPanel(
tabPanel("Data",data()[index,])
)
})
)
})
}
shinyApp(ui, server)
Possible to implement some type of server side rendering similar to data.table R package does? Below example takes some time to render.