Appsilon / reactable.extras

Extra features for reactable package
https://appsilon.github.io/reactable.extras/
38 stars 4 forks source link

[Bug]: Sorting a server side rendered table only works for current page #58

Open calderonsamuel opened 3 months ago

calderonsamuel commented 3 months ago

Guidelines

Project Version

0.2.0

Platform and OS Version

Trien in windows and linux

Existing Issues

No response

What happened?

While sorting a server side rendered table I noticed that it only sorts for the current page shown in the browser

Steps to reproduce

library(shiny)
library(reactable)
library(reactable.extras)

ui <- fluidPage(
  reactable_extras_ui("test")
)

server <- function(input, output, server) {
  reactable_extras_server(
    "test",
    data = iris,
    total_pages = ceiling(nrow(iris)/10)
  )
}

shinyApp(ui, server)
  1. Run code snippet
  2. Sort on any column ...

Expected behavior

The table should be sorted based on the whole content of the column

Attachments

No response

Screenshots or Videos

https://github.com/Appsilon/reactable.extras/assets/19418298/281962c8-b095-458a-a28d-c4911a68a322

Additional Information

No response