SemanticMediaWiki / SemanticResultFormats

Provides additional visualizations (result formats) for Semantic MediaWiki
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats
Other
45 stars 75 forks source link

FR: Datatables class should have configuration of pageLength #721

Closed djoris closed 1 year ago

djoris commented 1 year ago

Setup

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:

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.