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

FR: Datatables class should have configuration of pageLength #721

Closed
djoris opened this issue Sep 6, 2022 · 0 comments · Fixed by #730
Closed

FR: Datatables class should have configuration of pageLength #721

djoris opened this issue Sep 6, 2022 · 0 comments · Fixed by #730

Comments

@djoris
Copy link

djoris commented Sep 6, 2022

Setup

  • SMW version:3.2.3 (5619c2d), but also older versions
  • SRF version: 3.2.0 (ecbf369), but also older versions

Issue

When using datatables, the editor can't set a default pageLength (pagination size). Every datatable has a default of 10 rows per page. There are plenty use cases where a larger amount is desired.
It seems straightforward enough in the Javascript library: https://datatables.net/reference/option/pageLength

STR:
see https://www.semantic-mediawiki.org/wiki/User:Joris/datatables:

  • format=table
  • class=datatables
  • limit=20
  • the actual number of results is 16
  • the first 10 are shown when loading the page

Expected result:
A parameter should be optional for SRF table, eg 'pagelength', where the editor could change the number of rows. This should change the number of rows shown when loading the table, until the user selects a different number of rows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant