reactable.extras icon indicating copy to clipboard operation
reactable.extras copied to clipboard

[Bug]: rows_per_page

Open jwijffels opened this issue 7 months ago • 1 comments

Guidelines

  • [X] I agree to follow this project's Contributing Guidelines.

Project Version

0.2.0

Platform and OS Version

windows

Existing Issues

No response

What happened?

Example on server-side rendering fails as documented in ?reactable_extras_server

Steps to reproduce

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
      )
    }
  )
Listening on http://127.0.0.1:3297
Warning: Error in : Assertion on 'id' failed. Must be a subset of {'data','columns','columnGroups','rownames','groupBy','sortable','resizable','filterable','searchable','searchMethod','defaultColDef','defaultColGroup','defaultSortOrder','defaultSorted','pagination','defaultPageSize','showPageSizeOptions','pageSizeOptions','paginationType','showPagination','showPageInfo','minRows','paginateSubRows','details','defaultExpanded','selection','defaultSelected','onClick','highlight','outlined','bordered','borderless','striped','compact','wrap','showSortIcon','showSortable','class','style','rowClass','rowStyle','fullWidth','width','height','theme','language','meta','elementId','static','selectionId'}, but is {'columns','rows_per_page'}.
  54: <Anonymous>
  53: stop
  52: mstop
  51: checkmate::assert
  50: reactable_extras_server
  49: server [#4]
   3: runApp
   2: print.shiny.appobj
   1: <Anonymous>
Error : Assertion on 'id' failed. Must be a subset of {'data','columns','columnGroups','rownames','groupBy','sortable','resizable','filterable','searchable','searchMethod','defaultColDef','defaultColGroup','defaultSortOrder','defaultSorted','pagination','defaultPageSize','showPageSizeOptions','pageSizeOptions','paginationType','showPagination','showPageInfo','minRows','paginateSubRows','details','defaultExpanded','selection','defaultSelected','onClick','highlight','outlined','bordered','borderless','striped','compact','wrap','showSortIcon','showSortable','class','style','rowClass','rowStyle','fullWidth','width','height','theme','language','meta','elementId','static','selectionId'}, but is {'columns','rows_per_page'}.

Expected behavior

a working example

Attachments

none

Screenshots or Videos

none

Additional Information

none

jwijffels avatar Nov 27 '23 10:11 jwijffels