blob: 3f8f9a9102e02abc2f22127d91d9da77ad95c997 [file] [log] [blame]
Akron26d57f22021-09-10 16:48:57 +02001"use strict";
2
3define(function () {
4 return {
5 create : function () {
6 const o = Object.create(this);
7 const p = document.getElementById('pagination');
8 o.ds = p ? p.dataset : {};
9 return o;
10 },
11 page : function () {
12 return parseInt(this.ds["page"] || 0);
13 },
14 total : function () {
15 return parseInt(this.ds["total"] || 0);
16 },
17 count : function () {
18 return parseInt(this.ds["count"] || 0);
19 }
20 }
21});