Skip to content

Commit b8143db

Browse files
committed
Display length changing input control
- Fixes #95
1 parent 27a3b49 commit b8143db

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

History.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## Fixed Issues
66

7+
* [#95](https://github.com/pmd/pmd-regression-tester/issues/95): Add length menu for datatable to allow configurable page size
78
* [#96](https://github.com/pmd/pmd-regression-tester/issues/96): Fix failing integration tests
89

910
## External Contributions

resources/js/project-report.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $(document).ready(function () {
5252
],
5353
deferRender: true,
5454
// scrollY: "6000px",
55-
dom: 'Pfrtip', // Search Panes, filtering input, processing display element, table, table information summary, pagination control
55+
dom: 'Pfrtipl', // Search Panes, filtering input, processing display element, table, table information summary, pagination control, length changing input control
5656
searchPanes: {
5757
viewTotal: true,
5858
cascadePanes: true,
@@ -113,6 +113,7 @@ $(document).ready(function () {
113113
},
114114
],
115115
displayLength: 25,
116+
lengthMenu: [ [10, 20, 25, 50, 100, -1], [10, 20, 25, 50, 100, "All"] ],
116117
rowCallback(row, data, index) {
117118
$(row).addClass(cssClass[data.t]);
118119
},

0 commit comments

Comments
 (0)