Revision 985798a6
Added by Ron Lavi over 2 years ago
webpack/assets/javascripts/hosts/tableCheckboxes.js | ||
---|---|---|
}
|
||
|
||
function paginationMetaData() {
|
||
const total = Number(
|
||
document.getElementsByClassName('pagination-pf-items-total')[0].textContent
|
||
);
|
||
const perPage = Number(
|
||
document.getElementById('pagination-row-dropdown').textContent
|
||
);
|
||
return { total, perPage };
|
||
const { total, perPage } = document.getElementsByClassName(
|
||
'pf-c-pagination'
|
||
)[0].dataset;
|
||
return { total: Number(total), perPage: Number(perPage) };
|
||
}
|
||
|
||
function updateCounter() {
|
Also available in: Unified diff
Fixes #34133 - Add PF4 pagination
dropping the PF3 pagination and its helpers.