1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import {
|
8 | pageDataFunObj
|
9 | } from './page-data';
|
10 |
|
11 | import {
|
12 | pageGetDataFunObj
|
13 | } from './page-getData';
|
14 |
|
15 | import{
|
16 | rowGetMetaFunObj
|
17 | } from './page-getMeta';
|
18 |
|
19 | import {
|
20 | pageMetaFunObj
|
21 | } from './page-meta';
|
22 |
|
23 | import {
|
24 | pageRemoveRowFunObj
|
25 | } from './page-removeRow';
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | class Page{
|
33 | constructor(options){
|
34 |
|
35 | this.focus = options['focus'] || null;
|
36 |
|
37 | this.selectedIndices = options['selectedIndices'] || null;
|
38 |
|
39 | this.rows = options['rows'] || []
|
40 |
|
41 | this.parent = options['parent'] || null;
|
42 | }
|
43 | }
|
44 |
|
45 | const PageProto = Page.prototype;
|
46 | Object.assign(PageProto, pageDataFunObj);
|
47 | Object.assign(PageProto, pageGetDataFunObj);
|
48 | Object.assign(PageProto, rowGetMetaFunObj);
|
49 | Object.assign(PageProto, pageMetaFunObj);
|
50 | Object.assign(PageProto, pageRemoveRowFunObj);
|
51 |
|
52 | export {
|
53 | Page
|
54 | }
|