Bug 38259

Summary: Adjust DT's lengthMenu option
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: oleonard
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 36640    
Bug Blocks:    
Attachments: Bug 38259: lengthMenu

Description Jonathan Druart 2024-10-24 13:14:44 UTC
https://datatables.net/reference/option/lengthMenu

https://cdn.datatables.net/2.0.0/

"""
lengthMenu now easier to use, being an array of values, which can either be integers or a label / value object. The old 2D array form is still supported via the legacy integration.
"""

"""
Legacy

DataTables 1.x used a 2D array rather than objects to support languages. The first inner array is the page length values and the second inner array is the displayed options. This is still supported in DataTables 2, although now deprecated.
"""
Comment 1 Jonathan Druart 2025-07-29 13:39:07 UTC
Created attachment 184806 [details] [review]
Bug 38259: lengthMenu

Needs DataTables 2.3+ for lengthLabels