blob: 79685ced0fa960baf744edc16e936b2d68b97b02 [file] [log] [blame]
Helgefd9bb4f2026-07-30 11:02:55 +02001export default class PageInfo {
2 constructor() {
3 const p = document.getElementById('pagination');
4 this.ds = p ? p.dataset : {};
5 }
6
7 page() {
8 return parseInt(this.ds["page"] || 0);
9 }
10
11 total() {
12 return parseInt(this.ds["total"] || 0);
13 }
14
15 count() {
16 return parseInt(this.ds["count"] || 0);
17 }
18}