1 {
2 "description": "This component is based on the `div` element and supports all of its props",
3 "methods": [],
4 "displayName": "Table.Pagination",
5 "props": {
6 "count": {
7 "required": true,
8 "tsType": {
9 "name": "number"
10 },
11 "description": "The total number of items."
12 },
13 "pageSize": {
14 "required": true,
15 "tsType": {
16 "name": "number"
17 },
18 "description": "The number of items per page."
19 },
20 "pageIndex": {
21 "required": true,
22 "tsType": {
23 "name": "number"
24 },
25 "description": "The current page index."
26 },
27 "pageCount": {
28 "required": true,
29 "tsType": {
30 "name": "number"
31 },
32 "description": "The total number of pages."
33 },
34 "canPreviousPage": {
35 "required": true,
36 "tsType": {
37 "name": "boolean"
38 },
39 "description": "Whether there's a previous page that can be navigated to."
40 },
41 "canNextPage": {
42 "required": true,
43 "tsType": {
44 "name": "boolean"
45 },
46 "description": "Whether there's a next page that can be navigated to."
47 },
48 "translations": {
49 "required": false,
50 "tsType": {
51 "name": "signature",
52 "type": "object",
53 "raw": "{\n of?: string\n results?: string\n pages?: string\n prev?: string\n next?: string\n}",
54 "signature": {
55 "properties": [
56 {
57 "key": "of",
58 "value": {
59 "name": "string",
60 "required": false
61 }
62 },
63 {
64 "key": "results",
65 "value": {
66 "name": "string",
67 "required": false
68 }
69 },
70 {
71 "key": "pages",
72 "value": {
73 "name": "string",
74 "required": false
75 }
76 },
77 {
78 "key": "prev",
79 "value": {
80 "name": "string",
81 "required": false
82 }
83 },
84 {
85 "key": "next",
86 "value": {
87 "name": "string",
88 "required": false
89 }
90 }
91 ]
92 }
93 },
94 "description": "An optional object of words to use in the pagination component.\nUse this to override the default words, or translate them into another language.",
95 "defaultValue": {
96 "value": "{\n of: \"of\",\n results: \"results\",\n pages: \"pages\",\n prev: \"Prev\",\n next: \"Next\",\n}",
97 "computed": false
98 }
99 },
100 "previousPage": {
101 "required": true,
102 "tsType": {
103 "name": "signature",
104 "type": "function",
105 "raw": "() => void",
106 "signature": {
107 "arguments": [],
108 "return": {
109 "name": "void"
110 }
111 }
112 },
113 "description": "A function that handles navigating to the previous page.\nThis function should handle retrieving data for the previous page."
114 },
115 "nextPage": {
116 "required": true,
117 "tsType": {
118 "name": "signature",
119 "type": "function",
120 "raw": "() => void",
121 "signature": {
122 "arguments": [],
123 "return": {
124 "name": "void"
125 }
126 }
127 },
128 "description": "A function that handles navigating to the next page.\nThis function should handle retrieving data for the next page."
129 }
130 }
131 }