Skip to content

Commit 8f1d7f2

Browse files
committed
Merge pull request #101 from adangel:issue-95-page-size
Display length changing input control #101 * pr-101: Display length changing input control
2 parents 8f68c56 + b8143db commit 8f1d7f2

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
@@ -5,6 +5,7 @@
55
## Enhancements
66

77
* [#94](https://github.com/pmd/pmd-regression-tester/issues/94): Improve code snippet preview
8+
* [#95](https://github.com/pmd/pmd-regression-tester/issues/95): Add length menu for datatable to allow configurable page size
89

910
## Fixed Issues
1011

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)