| Akron | 26d57f2 | 2021-09-10 16:48:57 +0200 | [diff] [blame] | 1 | "use strict"; |
| 2 | |||||
| 3 | define(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 | }); | ||||