forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQPagination.json
More file actions
277 lines (240 loc) · 6.48 KB
/
QPagination.json
File metadata and controls
277 lines (240 loc) · 6.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
{
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-components/pagination"
},
"behavior": {
"$listeners": true
},
"props": {
"value": {
"type": "Number",
"desc": "Current page (must be between min/max)",
"required": true,
"examples": [ 3 ],
"category": "model"
},
"min": {
"type": "Number",
"desc": "Minimum page (must be lower than 'max')",
"default": 1,
"examples": [ 3 ],
"category": "model"
},
"max": {
"type": "Number",
"desc": "Number of last page (must be higher than 'min')",
"default": 100,
"required": true,
"examples": [ 10 ],
"category": "model"
},
"color": {
"extends": "color",
"default": "primary"
},
"text-color": {
"extends": "text-color"
},
"active-color": {
"extends": "color",
"default": "primary",
"addedIn": "v1.15.6"
},
"active-text-color": {
"extends": "text-color",
"addedIn": "v1.15.6"
},
"dark": {
"extends": "dark",
"desc": "Notify the component that the background is a dark color (useful when you are using it along with the 'input' prop)",
"addedIn": "v1.4.2"
},
"input-style": {
"type": [ "Array", "String", "Object" ],
"desc": "Style definitions to be attributed to the input (if using one)",
"examples": [
"background-color: #ff0000",
":input-style=\"{ backgroundColor: '#ff0000' }\""
],
"category": "style"
},
"input-class": {
"type": [ "Array", "String", "Object" ],
"desc": "Class definitions to be attributed to the input (if using one)",
"examples": [
"my-special-class",
":input-class=\"{ 'my-special-class': <condition> }\""
],
"category": "style"
},
"size": {
"type": "String",
"desc": "Button size in CSS units, including unit name",
"examples": [ "20px" ],
"category": "style"
},
"disable": {
"extends": "disable"
},
"input": {
"type": "Boolean",
"desc": "Use an input instead of buttons",
"category": "content"
},
"icon-prev": {
"extends": "icon",
"addedIn": "v.1.9.4"
},
"icon-next": {
"extends": "icon",
"addedIn": "v.1.9.4"
},
"icon-first": {
"extends": "icon",
"addedIn": "v.1.9.4"
},
"icon-last": {
"extends": "icon",
"addedIn": "v.1.9.4"
},
"to-fn": {
"type": "Function",
"desc": "Generate link for page buttons; For best performance, reference it from your scope and do not define it inline",
"params": {
"page": {
"type": "Number",
"desc": "Page number to navigate to",
"examples": [ 2 ]
}
},
"returns": {
"type": [ "Object", "String" ],
"desc": "Object or String that can be passed to a <router-link> as `to` parameter",
"__exemption": [ "examples" ]
},
"examples": [ ":to-fn=\"page => ({ query: { page } })\"" ],
"category": "content",
"addedIn": "v1.2.6"
},
"boundary-links": {
"type": "Boolean",
"desc": "Show boundary button links",
"category": "content"
},
"boundary-numbers": {
"type": "Boolean",
"desc": "Always show first and last page buttons (if not using 'input')",
"category": "content"
},
"direction-links": {
"type": "Boolean",
"desc": "Show direction buttons",
"category": "content"
},
"ellipses": {
"type": "Boolean",
"desc": "Show ellipses (...) when pages are available",
"category": "content"
},
"max-pages": {
"type": "Number",
"default": 0,
"desc": "Maximum number of page links to display at a time; 0 means Infinite",
"examples": [ 5 ],
"category": "model"
},
"ripple": {
"type": [ "Boolean", "Object" ],
"desc": "Configure buttons material ripple (disable it by setting it to 'false' or supply a config object); Does not applies to boundary and ellipsis buttons",
"default": true,
"examples": [ false, "{ early: true, center: true, color: 'teal', keyCodes: [] }" ],
"category": "style",
"addedIn": "v1.9.11"
},
"round": {
"type": "Boolean",
"desc": "Makes a circle shaped button for all buttons",
"category": "style",
"addedIn": "v1.15.0"
},
"rounded": {
"type": "Boolean",
"desc": "Applies a more prominent border-radius for a squared shape button for all buttons",
"category": "style",
"addedIn": "v1.15.0"
},
"flat": {
"type": "Boolean",
"desc": "Use 'flat' design for current page button",
"category": "style",
"addedIn": "v1.15.6"
},
"outline": {
"type": "Boolean",
"desc": "Use 'outline' design for current page button",
"category": "style",
"addedIn": "v1.15.0"
},
"unelevated": {
"type": "Boolean",
"desc": "Remove shadow for current page button",
"category": "style",
"addedIn": "v1.15.0"
},
"push": {
"type": "Boolean",
"desc": "Use 'push' design for current page button",
"category": "style",
"addedIn": "v1.15.0"
},
"glossy": {
"type": "Boolean",
"desc": "Applies a glossy effect for all buttons",
"category": "style",
"addedIn": "v1.15.0"
},
"dense": {
"extends": "dense",
"addedIn": "v1.15.0"
},
"padding": {
"type": "String",
"desc": "Apply custom padding (vertical [horizontal]); Size in CSS units, including unit name or standard size name (none|xs|sm|md|lg|xl); Also removes the min width and height when set",
"examples": [ "16px", "10px 5px", "2rem", "xs", "md lg", "2px 2px 5px 7px" ],
"category": "style",
"addedIn": "v1.15.0"
}
},
"events": {
"input": {
"extends": "input",
"params": {
"value": {
"type": "String"
}
}
}
},
"methods": {
"set": {
"desc": "Go directly to the specified page",
"params": {
"pageNumber": {
"type": "Number",
"desc": "Page number to go to",
"examples": [ 3 ]
}
}
},
"setByOffset": {
"desc": "Increment/Decrement current page by offset",
"params": {
"offset": {
"type": "Number",
"desc": "Offset page, can be negative or positive",
"examples": [ 3 ]
}
}
}
}
}