Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: rows_per_page #45

Open
1 task done
jwijffels opened this issue Nov 27, 2023 · 1 comment
Open
1 task done

[Bug]: rows_per_page #45

jwijffels opened this issue Nov 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jwijffels
Copy link

Guidelines

  • 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 jwijffels added the bug Something isn't working label Nov 27, 2023
@jakubnowicki
Copy link
Member

Thank you for pointing this, the example shouldn't include rows_per_page parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants