@lowdefy/docs-content 0.0.0-experimental-20260710073520
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +20 -0
- package/content/actions/callapi.md +66 -0
- package/content/actions/callmethod.md +41 -0
- package/content/actions/copytoclipboard.md +32 -0
- package/content/actions/displaymessage.md +53 -0
- package/content/actions/downloadcsv.md +89 -0
- package/content/actions/fetch.md +50 -0
- package/content/actions/geolocationcurrentposition.md +56 -0
- package/content/actions/link.md +104 -0
- package/content/actions/login.md +85 -0
- package/content/actions/logout.md +56 -0
- package/content/actions/pdfmake.md +304 -0
- package/content/actions/request.md +67 -0
- package/content/actions/reset.md +27 -0
- package/content/actions/resetvalidation.md +85 -0
- package/content/actions/scrollto.md +85 -0
- package/content/actions/setdarkmode.md +62 -0
- package/content/actions/setfocus.md +33 -0
- package/content/actions/setglobal.md +63 -0
- package/content/actions/setlocale.md +69 -0
- package/content/actions/setstate.md +70 -0
- package/content/actions/throw.md +72 -0
- package/content/actions/validate.md +87 -0
- package/content/actions/wait.md +24 -0
- package/content/agents/agent-endpoint-tools.md +190 -0
- package/content/agents/agent-mcp-tools.md +124 -0
- package/content/agents/agent-multi-agent.md +136 -0
- package/content/agents/agent-properties.md +174 -0
- package/content/agents/agent-server-hooks.md +336 -0
- package/content/agents/agentchat.md +515 -0
- package/content/agents/agentconversations.md +148 -0
- package/content/concepts/ai-agent-docs.md +190 -0
- package/content/concepts/cli.md +213 -0
- package/content/concepts/connections-and-requests.md +7 -0
- package/content/concepts/custom-html.md +3 -0
- package/content/concepts/custom-styling.md +161 -0
- package/content/concepts/events-and-actions.md +271 -0
- package/content/concepts/hosting-files.md +18 -0
- package/content/concepts/i18n.md +320 -0
- package/content/concepts/keyboard-shortcuts.md +218 -0
- package/content/concepts/layout-overview.md +478 -0
- package/content/concepts/lists.md +144 -0
- package/content/concepts/logger.md +43 -0
- package/content/concepts/lowdefy-schema.md +365 -0
- package/content/concepts/menus.md +144 -0
- package/content/concepts/module-authoring.md +564 -0
- package/content/concepts/modules.md +338 -0
- package/content/concepts/operators.md +45 -0
- package/content/concepts/overview.md +19 -0
- package/content/concepts/references-and-templates.md +207 -0
- package/content/concepts/secrets.md +24 -0
- package/content/concepts/selectors.md +143 -0
- package/content/connections/amazonredshift.md +176 -0
- package/content/connections/anthropic.md +232 -0
- package/content/connections/awss3.md +313 -0
- package/content/connections/azureblobstorage.md +133 -0
- package/content/connections/elasticsearch.md +371 -0
- package/content/connections/google.md +228 -0
- package/content/connections/googlecloudstorage.md +139 -0
- package/content/connections/googlesheet.md +313 -0
- package/content/connections/knex.md +206 -0
- package/content/connections/mariadb.md +177 -0
- package/content/connections/mcp.md +134 -0
- package/content/connections/mongodb.md +739 -0
- package/content/connections/mssql.md +191 -0
- package/content/connections/mysql.md +192 -0
- package/content/connections/openai-connection.md +228 -0
- package/content/connections/postgresql.md +200 -0
- package/content/connections/redis.md +116 -0
- package/content/connections/sendgridmail.md +94 -0
- package/content/connections/smtp.md +149 -0
- package/content/connections/sqlite.md +187 -0
- package/content/connections/stripe.md +115 -0
- package/content/container-blocks/affix.md +413 -0
- package/content/container-blocks/alert.md +937 -0
- package/content/container-blocks/badge.md +1222 -0
- package/content/container-blocks/box.md +1453 -0
- package/content/container-blocks/card.md +1200 -0
- package/content/container-blocks/carousel.md +2247 -0
- package/content/container-blocks/collapse.md +1335 -0
- package/content/container-blocks/configprovider.md +1070 -0
- package/content/container-blocks/confirmmodal.md +1159 -0
- package/content/container-blocks/content.md +597 -0
- package/content/container-blocks/descriptions.md +870 -0
- package/content/container-blocks/drawer.md +1379 -0
- package/content/container-blocks/dropdownmenu.md +643 -0
- package/content/container-blocks/flex.md +1510 -0
- package/content/container-blocks/footer.md +380 -0
- package/content/container-blocks/googlemaps.md +546 -0
- package/content/container-blocks/googlemapsheatmap.md +607 -0
- package/content/container-blocks/googlemapsscript.md +61 -0
- package/content/container-blocks/header.md +302 -0
- package/content/container-blocks/label.md +739 -0
- package/content/container-blocks/layout.md +604 -0
- package/content/container-blocks/masonry.md +1090 -0
- package/content/container-blocks/mobilemenu.md +1244 -0
- package/content/container-blocks/modal.md +1180 -0
- package/content/container-blocks/pageheadermenu.md +614 -0
- package/content/container-blocks/pagesidebarlayout.md +438 -0
- package/content/container-blocks/pagesidermenu.md +651 -0
- package/content/container-blocks/popover.md +1421 -0
- package/content/container-blocks/result.md +972 -0
- package/content/container-blocks/sider.md +1064 -0
- package/content/container-blocks/span.md +747 -0
- package/content/container-blocks/spinner.md +267 -0
- package/content/container-blocks/splitter.md +1735 -0
- package/content/container-blocks/tabs.md +1718 -0
- package/content/container-blocks/tooltip.md +1274 -0
- package/content/container-blocks/watermark.md +515 -0
- package/content/controls/for.md +103 -0
- package/content/controls/if.md +107 -0
- package/content/controls/log.md +50 -0
- package/content/controls/parallel.md +71 -0
- package/content/controls/parallel_for.md +36 -0
- package/content/controls/reject.md +56 -0
- package/content/controls/return.md +66 -0
- package/content/controls/set_state.md +98 -0
- package/content/controls/switch.md +90 -0
- package/content/controls/throw.md +79 -0
- package/content/controls/try.md +88 -0
- package/content/deployment/docker.md +149 -0
- package/content/deployment/node-server.md +27 -0
- package/content/deployment/vercel.md +101 -0
- package/content/display-blocks/aggrid.md +1459 -0
- package/content/display-blocks/anchor.md +336 -0
- package/content/display-blocks/avatar.md +1154 -0
- package/content/display-blocks/breadcrumb.md +517 -0
- package/content/display-blocks/button.md +758 -0
- package/content/display-blocks/calendar.md +156 -0
- package/content/display-blocks/dangeroushtml.md +314 -0
- package/content/display-blocks/dangerousmarkdown.md +423 -0
- package/content/display-blocks/diffgit.md +44 -0
- package/content/display-blocks/difflist.md +225 -0
- package/content/display-blocks/diffsidebyside.md +56 -0
- package/content/display-blocks/difftimeline.md +94 -0
- package/content/display-blocks/divider.md +406 -0
- package/content/display-blocks/download.md +60 -0
- package/content/display-blocks/dropdownbutton.md +661 -0
- package/content/display-blocks/echart.md +418 -0
- package/content/display-blocks/floatbutton.md +545 -0
- package/content/display-blocks/html.md +311 -0
- package/content/display-blocks/icon.md +717 -0
- package/content/display-blocks/img.md +479 -0
- package/content/display-blocks/markdown.md +520 -0
- package/content/display-blocks/markdownwithcode.md +730 -0
- package/content/display-blocks/menu.md +1123 -0
- package/content/display-blocks/message.md +941 -0
- package/content/display-blocks/notification.md +1410 -0
- package/content/display-blocks/paragraph.md +643 -0
- package/content/display-blocks/progress.md +818 -0
- package/content/display-blocks/qrcode.md +519 -0
- package/content/display-blocks/s3download.md +240 -0
- package/content/display-blocks/search.md +360 -0
- package/content/display-blocks/skeleton.md +272 -0
- package/content/display-blocks/skeletonavatar.md +222 -0
- package/content/display-blocks/skeletonbutton.md +245 -0
- package/content/display-blocks/skeletoninput.md +223 -0
- package/content/display-blocks/skeletonparagraph.md +201 -0
- package/content/display-blocks/statistic.md +485 -0
- package/content/display-blocks/steps.md +585 -0
- package/content/display-blocks/tag.md +620 -0
- package/content/display-blocks/title.md +654 -0
- package/content/display-blocks/tour.md +2359 -0
- package/content/input-blocks/autocomplete.md +786 -0
- package/content/input-blocks/buttonselector.md +964 -0
- package/content/input-blocks/checkboxselector.md +765 -0
- package/content/input-blocks/checkboxswitch.md +497 -0
- package/content/input-blocks/colorselector.md +884 -0
- package/content/input-blocks/daterangeselector.md +777 -0
- package/content/input-blocks/dateselector.md +693 -0
- package/content/input-blocks/datetimeselector.md +791 -0
- package/content/input-blocks/inputgallery.md +528 -0
- package/content/input-blocks/monthselector.md +717 -0
- package/content/input-blocks/multipleselector.md +1337 -0
- package/content/input-blocks/numberinput.md +855 -0
- package/content/input-blocks/pagination.md +679 -0
- package/content/input-blocks/paragraphinput.md +1664 -0
- package/content/input-blocks/passwordinput.md +480 -0
- package/content/input-blocks/phonenumberinput.md +688 -0
- package/content/input-blocks/radioselector.md +820 -0
- package/content/input-blocks/ratingslider.md +684 -0
- package/content/input-blocks/s3uploadbutton.md +384 -0
- package/content/input-blocks/s3uploaddragger.md +305 -0
- package/content/input-blocks/s3uploadphoto.md +288 -0
- package/content/input-blocks/segmentedselector.md +782 -0
- package/content/input-blocks/selector.md +1162 -0
- package/content/input-blocks/switch.md +552 -0
- package/content/input-blocks/textarea.md +714 -0
- package/content/input-blocks/textinput.md +639 -0
- package/content/input-blocks/tiptapinput.md +226 -0
- package/content/input-blocks/tiptapmentioninput.md +471 -0
- package/content/input-blocks/titleinput.md +1094 -0
- package/content/input-blocks/treeinput.md +144 -0
- package/content/input-blocks/treemultipleselector.md +162 -0
- package/content/input-blocks/treeselector.md +185 -0
- package/content/input-blocks/upload.md +149 -0
- package/content/input-blocks/uploaddragger.md +85 -0
- package/content/input-blocks/uploadphoto.md +84 -0
- package/content/input-blocks/weekselector.md +630 -0
- package/content/list-blocks/controlledlist.md +498 -0
- package/content/list-blocks/list.md +529 -0
- package/content/list-blocks/listselector.md +301 -0
- package/content/list-blocks/masonrylist.md +230 -0
- package/content/migration/upgrade-guide.md +106 -0
- package/content/migration/v4-to-v5.md +589 -0
- package/content/migration/v5-to-v6.md +36 -0
- package/content/operators/_actions.md +58 -0
- package/content/operators/_and.md +76 -0
- package/content/operators/_api.md +254 -0
- package/content/operators/_app.md +114 -0
- package/content/operators/_args.md +65 -0
- package/content/operators/_array.md +331 -0
- package/content/operators/_base64.md +49 -0
- package/content/operators/_boolean.md +33 -0
- package/content/operators/_build.md +166 -0
- package/content/operators/_change_case.md +357 -0
- package/content/operators/_date.md +415 -0
- package/content/operators/_dayjs.md +128 -0
- package/content/operators/_diff.md +61 -0
- package/content/operators/_divide.md +32 -0
- package/content/operators/_eq.md +52 -0
- package/content/operators/_event.md +86 -0
- package/content/operators/_function.md +52 -0
- package/content/operators/_get.md +92 -0
- package/content/operators/_global.md +86 -0
- package/content/operators/_gt.md +50 -0
- package/content/operators/_gte.md +50 -0
- package/content/operators/_hash.md +112 -0
- package/content/operators/_if.md +30 -0
- package/content/operators/_if_none.md +47 -0
- package/content/operators/_index.md +48 -0
- package/content/operators/_input.md +86 -0
- package/content/operators/_intl.md +135 -0
- package/content/operators/_item.md +166 -0
- package/content/operators/_js.md +113 -0
- package/content/operators/_json.md +120 -0
- package/content/operators/_jsonata.md +152 -0
- package/content/operators/_locale.md +65 -0
- package/content/operators/_location.md +40 -0
- package/content/operators/_log.md +22 -0
- package/content/operators/_lt.md +50 -0
- package/content/operators/_lte.md +50 -0
- package/content/operators/_math.md +407 -0
- package/content/operators/_media.md +83 -0
- package/content/operators/_menu.md +62 -0
- package/content/operators/_module.md +340 -0
- package/content/operators/_mql.md +95 -0
- package/content/operators/_ne.md +62 -0
- package/content/operators/_not.md +33 -0
- package/content/operators/_number.md +159 -0
- package/content/operators/_nunjucks.md +117 -0
- package/content/operators/_object.md +253 -0
- package/content/operators/_operator.md +33 -0
- package/content/operators/_or.md +67 -0
- package/content/operators/_product.md +45 -0
- package/content/operators/_random.md +90 -0
- package/content/operators/_ref.md +80 -0
- package/content/operators/_regex.md +69 -0
- package/content/operators/_request.md +35 -0
- package/content/operators/_request_details.md +29 -0
- package/content/operators/_secret.md +56 -0
- package/content/operators/_state.md +134 -0
- package/content/operators/_step.md +98 -0
- package/content/operators/_string.md +327 -0
- package/content/operators/_subtract.md +24 -0
- package/content/operators/_sum.md +45 -0
- package/content/operators/_switch.md +37 -0
- package/content/operators/_t.md +96 -0
- package/content/operators/_theme.md +65 -0
- package/content/operators/_type.md +78 -0
- package/content/operators/_uri.md +49 -0
- package/content/operators/_url_query.md +92 -0
- package/content/operators/_user.md +154 -0
- package/content/operators/_uuid.md +118 -0
- package/content/operators/_var.md +88 -0
- package/content/operators/_yaml.md +96 -0
- package/content/other/introduction.md +39 -0
- package/content/other/next-auth-providers.md +3 -0
- package/content/other/updatesession.md +26 -0
- package/content/plugins/plugins-actions.md +80 -0
- package/content/plugins/plugins-connections.md +98 -0
- package/content/plugins/plugins-dev.md +138 -0
- package/content/plugins/plugins-introduction.md +29 -0
- package/content/plugins/plugins-operators.md +71 -0
- package/content/testing/e2e-auth.md +108 -0
- package/content/testing/e2e-configuration.md +107 -0
- package/content/testing/e2e-getting-started.md +96 -0
- package/content/testing/e2e-introduction.md +53 -0
- package/content/testing/e2e-mocking.md +155 -0
- package/content/testing/e2e-writing-tests.md +214 -0
- package/content/tutorial/tutorial-actions-operators.md +222 -0
- package/content/tutorial/tutorial-add-blocks.md +86 -0
- package/content/tutorial/tutorial-create-page.md +57 -0
- package/content/tutorial/tutorial-display-data-page.md +181 -0
- package/content/tutorial/tutorial-next-steps.md +53 -0
- package/content/tutorial/tutorial-requests-sql.md +22 -0
- package/content/tutorial/tutorial-start.md +71 -0
- package/content/user-authentication/auth-providers.md +15 -0
- package/content/user-authentication/login-and-logout.md +122 -0
- package/content/user-authentication/users-introduction.md +31 -0
- package/index.json +2281 -0
- package/package.json +34 -0
- package/scripts/extractAgentDocs.js +130 -0
|
@@ -0,0 +1,679 @@
|
|
|
1
|
+
# Pagination
|
|
2
|
+
|
|
3
|
+
Pagination control with page size changer and quick jumper. Maintains `current`, `pageSize`, and `skip` in block state, making it easy to wire into database queries for server-side pagination. See the guide below for a full MongoDB + AgGrid example.
|
|
4
|
+
|
|
5
|
+
## Example: Server-side pagination with MongoDB
|
|
6
|
+
|
|
7
|
+
Pass `skip` and `pageSize` via the request `_payload`, then re-fetch on page change:
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
requests:
|
|
11
|
+
- id: get_items
|
|
12
|
+
type: MongoDBAggregation
|
|
13
|
+
connectionId: mongodb
|
|
14
|
+
payload:
|
|
15
|
+
pagination:
|
|
16
|
+
_state: pagination
|
|
17
|
+
properties:
|
|
18
|
+
pipeline:
|
|
19
|
+
- $facet:
|
|
20
|
+
rows:
|
|
21
|
+
- $skip:
|
|
22
|
+
_payload: pagination.skip
|
|
23
|
+
- $limit:
|
|
24
|
+
_payload: pagination.pageSize
|
|
25
|
+
count:
|
|
26
|
+
- $count: total
|
|
27
|
+
|
|
28
|
+
blocks:
|
|
29
|
+
- id: pagination
|
|
30
|
+
type: Pagination
|
|
31
|
+
properties:
|
|
32
|
+
total:
|
|
33
|
+
_request: get_items.count.0.total
|
|
34
|
+
showSizeChanger: true
|
|
35
|
+
showTotal: true
|
|
36
|
+
events:
|
|
37
|
+
onChange:
|
|
38
|
+
- id: refetch
|
|
39
|
+
type: Request
|
|
40
|
+
params: get_items
|
|
41
|
+
onSizeChange:
|
|
42
|
+
- id: refetch
|
|
43
|
+
type: Request
|
|
44
|
+
params: get_items
|
|
45
|
+
|
|
46
|
+
- id: table
|
|
47
|
+
type: AgGridAlpine
|
|
48
|
+
properties:
|
|
49
|
+
rowData:
|
|
50
|
+
_request: get_items.rows
|
|
51
|
+
columnDefs:
|
|
52
|
+
- field: name
|
|
53
|
+
- field: status
|
|
54
|
+
- field: createdAt
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
`$facet` returns both paginated rows and the total count in one query. The Pagination block maintains `skip` and `pageSize` in state automatically. State values are passed to the request via `payload` / `_payload` so they are evaluated server-side.
|
|
58
|
+
|
|
59
|
+
**Default size:**
|
|
60
|
+
|
|
61
|
+
**Small size:**
|
|
62
|
+
|
|
63
|
+
```yaml
|
|
64
|
+
- id: size_default_label
|
|
65
|
+
type: Markdown
|
|
66
|
+
properties:
|
|
67
|
+
content: "**Default size:**"
|
|
68
|
+
- id: size_default
|
|
69
|
+
type: Pagination
|
|
70
|
+
properties:
|
|
71
|
+
total: 100
|
|
72
|
+
- id: size_small_label
|
|
73
|
+
type: Markdown
|
|
74
|
+
properties:
|
|
75
|
+
content: "**Small size:**"
|
|
76
|
+
- id: size_small
|
|
77
|
+
type: Pagination
|
|
78
|
+
properties:
|
|
79
|
+
total: 100
|
|
80
|
+
size: small
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Simple (default size):**
|
|
84
|
+
|
|
85
|
+
**Simple (small size):**
|
|
86
|
+
|
|
87
|
+
```yaml
|
|
88
|
+
- id: simple_default_label
|
|
89
|
+
type: Markdown
|
|
90
|
+
properties:
|
|
91
|
+
content: "**Simple (default size):**"
|
|
92
|
+
- id: simple_default
|
|
93
|
+
type: Pagination
|
|
94
|
+
properties:
|
|
95
|
+
total: 100
|
|
96
|
+
simple: true
|
|
97
|
+
- id: simple_small_label
|
|
98
|
+
type: Markdown
|
|
99
|
+
properties:
|
|
100
|
+
content: "**Simple (small size):**"
|
|
101
|
+
- id: simple_small
|
|
102
|
+
type: Pagination
|
|
103
|
+
properties:
|
|
104
|
+
total: 100
|
|
105
|
+
simple: true
|
|
106
|
+
size: small
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Boolean (default format):**
|
|
110
|
+
|
|
111
|
+
**Custom string:**
|
|
112
|
+
|
|
113
|
+
**Show total (small):**
|
|
114
|
+
|
|
115
|
+
```yaml
|
|
116
|
+
- id: show_total_bool_label
|
|
117
|
+
type: Markdown
|
|
118
|
+
properties:
|
|
119
|
+
content: "**Boolean (default format):**"
|
|
120
|
+
- id: show_total_bool
|
|
121
|
+
type: Pagination
|
|
122
|
+
properties:
|
|
123
|
+
total: 85
|
|
124
|
+
showTotal: true
|
|
125
|
+
- id: show_total_string_label
|
|
126
|
+
type: Markdown
|
|
127
|
+
properties:
|
|
128
|
+
content: "**Custom string:**"
|
|
129
|
+
- id: show_total_string
|
|
130
|
+
type: Pagination
|
|
131
|
+
properties:
|
|
132
|
+
total: 85
|
|
133
|
+
showTotal: 85 results found
|
|
134
|
+
- id: show_total_small_label
|
|
135
|
+
type: Markdown
|
|
136
|
+
properties:
|
|
137
|
+
content: "**Show total (small):**"
|
|
138
|
+
- id: show_total_small
|
|
139
|
+
type: Pagination
|
|
140
|
+
properties:
|
|
141
|
+
total: 200
|
|
142
|
+
showTotal: true
|
|
143
|
+
size: small
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Default page size options:**
|
|
147
|
+
|
|
148
|
+
**Custom page size options:**
|
|
149
|
+
|
|
150
|
+
**Size changer (small):**
|
|
151
|
+
|
|
152
|
+
```yaml
|
|
153
|
+
- id: size_changer_label
|
|
154
|
+
type: Markdown
|
|
155
|
+
properties:
|
|
156
|
+
content: "**Default page size options:**"
|
|
157
|
+
- id: size_changer_default
|
|
158
|
+
type: Pagination
|
|
159
|
+
properties:
|
|
160
|
+
total: 200
|
|
161
|
+
showSizeChanger: true
|
|
162
|
+
- id: size_changer_custom_label
|
|
163
|
+
type: Markdown
|
|
164
|
+
properties:
|
|
165
|
+
content: "**Custom page size options:**"
|
|
166
|
+
- id: size_changer_custom
|
|
167
|
+
type: Pagination
|
|
168
|
+
properties:
|
|
169
|
+
total: 500
|
|
170
|
+
showSizeChanger: true
|
|
171
|
+
pageSizeOptions:
|
|
172
|
+
- 5
|
|
173
|
+
- 15
|
|
174
|
+
- 25
|
|
175
|
+
- 50
|
|
176
|
+
- 100
|
|
177
|
+
- id: size_changer_small_label
|
|
178
|
+
type: Markdown
|
|
179
|
+
properties:
|
|
180
|
+
content: "**Size changer (small):**"
|
|
181
|
+
- id: size_changer_small
|
|
182
|
+
type: Pagination
|
|
183
|
+
properties:
|
|
184
|
+
total: 200
|
|
185
|
+
showSizeChanger: true
|
|
186
|
+
size: small
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Quick jumper enabled:**
|
|
190
|
+
|
|
191
|
+
**Quick jumper (small):**
|
|
192
|
+
|
|
193
|
+
```yaml
|
|
194
|
+
- id: quick_jumper_label
|
|
195
|
+
type: Markdown
|
|
196
|
+
properties:
|
|
197
|
+
content: "**Quick jumper enabled:**"
|
|
198
|
+
- id: quick_jumper
|
|
199
|
+
type: Pagination
|
|
200
|
+
properties:
|
|
201
|
+
total: 500
|
|
202
|
+
showQuickJumper: true
|
|
203
|
+
- id: quick_jumper_small_label
|
|
204
|
+
type: Markdown
|
|
205
|
+
properties:
|
|
206
|
+
content: "**Quick jumper (small):**"
|
|
207
|
+
- id: quick_jumper_small
|
|
208
|
+
type: Pagination
|
|
209
|
+
properties:
|
|
210
|
+
total: 500
|
|
211
|
+
showQuickJumper: true
|
|
212
|
+
size: small
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
**Default options [10, 20, 30, 40]:**
|
|
216
|
+
|
|
217
|
+
**Custom options [5, 10, 50, 100]:**
|
|
218
|
+
|
|
219
|
+
**Large page sizes [25, 50, 100, 200]:**
|
|
220
|
+
|
|
221
|
+
```yaml
|
|
222
|
+
- id: page_size_default_label
|
|
223
|
+
type: Markdown
|
|
224
|
+
properties:
|
|
225
|
+
content: "**Default options [10, 20, 30, 40]:**"
|
|
226
|
+
- id: page_size_default
|
|
227
|
+
type: Pagination
|
|
228
|
+
properties:
|
|
229
|
+
total: 300
|
|
230
|
+
showSizeChanger: true
|
|
231
|
+
- id: page_size_custom_label
|
|
232
|
+
type: Markdown
|
|
233
|
+
properties:
|
|
234
|
+
content: "**Custom options [5, 10, 50, 100]:**"
|
|
235
|
+
- id: page_size_custom
|
|
236
|
+
type: Pagination
|
|
237
|
+
properties:
|
|
238
|
+
total: 300
|
|
239
|
+
showSizeChanger: true
|
|
240
|
+
pageSizeOptions:
|
|
241
|
+
- 5
|
|
242
|
+
- 10
|
|
243
|
+
- 50
|
|
244
|
+
- 100
|
|
245
|
+
- id: page_size_large_label
|
|
246
|
+
type: Markdown
|
|
247
|
+
properties:
|
|
248
|
+
content: "**Large page sizes [25, 50, 100, 200]:**"
|
|
249
|
+
- id: page_size_large
|
|
250
|
+
type: Pagination
|
|
251
|
+
properties:
|
|
252
|
+
total: 1000
|
|
253
|
+
showSizeChanger: true
|
|
254
|
+
pageSizeOptions:
|
|
255
|
+
- 25
|
|
256
|
+
- 50
|
|
257
|
+
- 100
|
|
258
|
+
- 200
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
**Multiple pages (visible):**
|
|
262
|
+
|
|
263
|
+
**Single page (hidden - nothing renders below):**
|
|
264
|
+
|
|
265
|
+
**Single page (hideOnSinglePage false):**
|
|
266
|
+
|
|
267
|
+
```yaml
|
|
268
|
+
- id: hide_single_visible_label
|
|
269
|
+
type: Markdown
|
|
270
|
+
properties:
|
|
271
|
+
content: "**Multiple pages (visible):**"
|
|
272
|
+
- id: hide_single_visible
|
|
273
|
+
type: Pagination
|
|
274
|
+
properties:
|
|
275
|
+
total: 50
|
|
276
|
+
hideOnSinglePage: true
|
|
277
|
+
- id: hide_single_hidden_label
|
|
278
|
+
type: Markdown
|
|
279
|
+
properties:
|
|
280
|
+
content: "**Single page (hidden - nothing renders below):**"
|
|
281
|
+
- id: hide_single_hidden
|
|
282
|
+
type: Pagination
|
|
283
|
+
properties:
|
|
284
|
+
total: 5
|
|
285
|
+
hideOnSinglePage: true
|
|
286
|
+
- id: hide_single_no_hide_label
|
|
287
|
+
type: Markdown
|
|
288
|
+
properties:
|
|
289
|
+
content: "**Single page (hideOnSinglePage false):**"
|
|
290
|
+
- id: hide_single_no_hide
|
|
291
|
+
type: Pagination
|
|
292
|
+
properties:
|
|
293
|
+
total: 5
|
|
294
|
+
hideOnSinglePage: false
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
**Small total (30):**
|
|
298
|
+
|
|
299
|
+
**Medium total (100):**
|
|
300
|
+
|
|
301
|
+
**Large total (500):**
|
|
302
|
+
|
|
303
|
+
**Very large total (10000):**
|
|
304
|
+
|
|
305
|
+
```yaml
|
|
306
|
+
- id: total_small_label
|
|
307
|
+
type: Markdown
|
|
308
|
+
properties:
|
|
309
|
+
content: "**Small total (30):**"
|
|
310
|
+
- id: total_small
|
|
311
|
+
type: Pagination
|
|
312
|
+
properties:
|
|
313
|
+
total: 30
|
|
314
|
+
- id: total_medium_label
|
|
315
|
+
type: Markdown
|
|
316
|
+
properties:
|
|
317
|
+
content: "**Medium total (100):**"
|
|
318
|
+
- id: total_medium
|
|
319
|
+
type: Pagination
|
|
320
|
+
properties:
|
|
321
|
+
total: 100
|
|
322
|
+
- id: total_large_label
|
|
323
|
+
type: Markdown
|
|
324
|
+
properties:
|
|
325
|
+
content: "**Large total (500):**"
|
|
326
|
+
- id: total_large
|
|
327
|
+
type: Pagination
|
|
328
|
+
properties:
|
|
329
|
+
total: 500
|
|
330
|
+
- id: total_very_large_label
|
|
331
|
+
type: Markdown
|
|
332
|
+
properties:
|
|
333
|
+
content: "**Very large total (10000):**"
|
|
334
|
+
- id: total_very_large
|
|
335
|
+
type: Pagination
|
|
336
|
+
properties:
|
|
337
|
+
total: 10000
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
**Basic disabled:**
|
|
341
|
+
|
|
342
|
+
**Disabled (small):**
|
|
343
|
+
|
|
344
|
+
**Disabled with all features:**
|
|
345
|
+
|
|
346
|
+
**Disabled simple mode:**
|
|
347
|
+
|
|
348
|
+
```yaml
|
|
349
|
+
- id: disabled_basic_label
|
|
350
|
+
type: Markdown
|
|
351
|
+
properties:
|
|
352
|
+
content: "**Basic disabled:**"
|
|
353
|
+
- id: disabled_basic
|
|
354
|
+
type: Pagination
|
|
355
|
+
properties:
|
|
356
|
+
total: 100
|
|
357
|
+
disabled: true
|
|
358
|
+
- id: disabled_small_label
|
|
359
|
+
type: Markdown
|
|
360
|
+
properties:
|
|
361
|
+
content: "**Disabled (small):**"
|
|
362
|
+
- id: disabled_small
|
|
363
|
+
type: Pagination
|
|
364
|
+
properties:
|
|
365
|
+
total: 100
|
|
366
|
+
disabled: true
|
|
367
|
+
size: small
|
|
368
|
+
- id: disabled_features_label
|
|
369
|
+
type: Markdown
|
|
370
|
+
properties:
|
|
371
|
+
content: "**Disabled with all features:**"
|
|
372
|
+
- id: disabled_features
|
|
373
|
+
type: Pagination
|
|
374
|
+
properties:
|
|
375
|
+
total: 200
|
|
376
|
+
disabled: true
|
|
377
|
+
showSizeChanger: true
|
|
378
|
+
showQuickJumper: true
|
|
379
|
+
showTotal: true
|
|
380
|
+
- id: disabled_simple_label
|
|
381
|
+
type: Markdown
|
|
382
|
+
properties:
|
|
383
|
+
content: "**Disabled simple mode:**"
|
|
384
|
+
- id: disabled_simple
|
|
385
|
+
type: Pagination
|
|
386
|
+
properties:
|
|
387
|
+
total: 100
|
|
388
|
+
disabled: true
|
|
389
|
+
simple: true
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
**All features enabled:**
|
|
393
|
+
|
|
394
|
+
**All features (small):**
|
|
395
|
+
|
|
396
|
+
**Total + size changer:**
|
|
397
|
+
|
|
398
|
+
**Total + quick jumper:**
|
|
399
|
+
|
|
400
|
+
**Size changer + quick jumper:**
|
|
401
|
+
|
|
402
|
+
```yaml
|
|
403
|
+
- id: combined_all_label
|
|
404
|
+
type: Markdown
|
|
405
|
+
properties:
|
|
406
|
+
content: "**All features enabled:**"
|
|
407
|
+
- id: combined_all
|
|
408
|
+
type: Pagination
|
|
409
|
+
properties:
|
|
410
|
+
total: 500
|
|
411
|
+
showSizeChanger: true
|
|
412
|
+
showQuickJumper: true
|
|
413
|
+
showTotal: true
|
|
414
|
+
- id: combined_all_small_label
|
|
415
|
+
type: Markdown
|
|
416
|
+
properties:
|
|
417
|
+
content: "**All features (small):**"
|
|
418
|
+
- id: combined_all_small
|
|
419
|
+
type: Pagination
|
|
420
|
+
properties:
|
|
421
|
+
total: 500
|
|
422
|
+
showSizeChanger: true
|
|
423
|
+
showQuickJumper: true
|
|
424
|
+
showTotal: true
|
|
425
|
+
size: small
|
|
426
|
+
- id: combined_total_changer_label
|
|
427
|
+
type: Markdown
|
|
428
|
+
properties:
|
|
429
|
+
content: "**Total + size changer:**"
|
|
430
|
+
- id: combined_total_changer
|
|
431
|
+
type: Pagination
|
|
432
|
+
properties:
|
|
433
|
+
total: 300
|
|
434
|
+
showTotal: true
|
|
435
|
+
showSizeChanger: true
|
|
436
|
+
- id: combined_total_jumper_label
|
|
437
|
+
type: Markdown
|
|
438
|
+
properties:
|
|
439
|
+
content: "**Total + quick jumper:**"
|
|
440
|
+
- id: combined_total_jumper
|
|
441
|
+
type: Pagination
|
|
442
|
+
properties:
|
|
443
|
+
total: 300
|
|
444
|
+
showTotal: true
|
|
445
|
+
showQuickJumper: true
|
|
446
|
+
- id: combined_changer_jumper_label
|
|
447
|
+
type: Markdown
|
|
448
|
+
properties:
|
|
449
|
+
content: "**Size changer + quick jumper:**"
|
|
450
|
+
- id: combined_changer_jumper
|
|
451
|
+
type: Pagination
|
|
452
|
+
properties:
|
|
453
|
+
total: 300
|
|
454
|
+
showSizeChanger: true
|
|
455
|
+
showQuickJumper: true
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
```yaml
|
|
459
|
+
- id: with_label_default
|
|
460
|
+
type: Pagination
|
|
461
|
+
properties:
|
|
462
|
+
title: Page Navigation
|
|
463
|
+
total: 100
|
|
464
|
+
- id: with_label_inline
|
|
465
|
+
type: Pagination
|
|
466
|
+
properties:
|
|
467
|
+
title: Results
|
|
468
|
+
total: 200
|
|
469
|
+
showTotal: true
|
|
470
|
+
label:
|
|
471
|
+
inline: true
|
|
472
|
+
span: 6
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
**Custom background and padding:**
|
|
476
|
+
|
|
477
|
+
**Centered with border:**
|
|
478
|
+
|
|
479
|
+
**Right aligned:**
|
|
480
|
+
|
|
481
|
+
```yaml
|
|
482
|
+
- id: style_background_label
|
|
483
|
+
type: Markdown
|
|
484
|
+
properties:
|
|
485
|
+
content: "**Custom background and padding:**"
|
|
486
|
+
- id: style_background
|
|
487
|
+
type: Pagination
|
|
488
|
+
style:
|
|
489
|
+
.element:
|
|
490
|
+
background: var(--ant-color-bg-layout)
|
|
491
|
+
padding: 12
|
|
492
|
+
borderRadius: 8
|
|
493
|
+
properties:
|
|
494
|
+
total: 100
|
|
495
|
+
- id: style_centered_label
|
|
496
|
+
type: Markdown
|
|
497
|
+
properties:
|
|
498
|
+
content: "**Centered with border:**"
|
|
499
|
+
- id: style_centered
|
|
500
|
+
type: Pagination
|
|
501
|
+
style:
|
|
502
|
+
.element:
|
|
503
|
+
border: 1px solid
|
|
504
|
+
borderRadius: 8
|
|
505
|
+
padding: 12
|
|
506
|
+
display: flex
|
|
507
|
+
justifyContent: center
|
|
508
|
+
properties:
|
|
509
|
+
total: 100
|
|
510
|
+
- id: style_right_label
|
|
511
|
+
type: Markdown
|
|
512
|
+
properties:
|
|
513
|
+
content: "**Right aligned:**"
|
|
514
|
+
- id: style_right
|
|
515
|
+
type: Pagination
|
|
516
|
+
style:
|
|
517
|
+
.element:
|
|
518
|
+
display: flex
|
|
519
|
+
justifyContent: flex-end
|
|
520
|
+
properties:
|
|
521
|
+
total: 100
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
**Tailwind background and padding:**
|
|
525
|
+
|
|
526
|
+
**Tailwind border and centered:**
|
|
527
|
+
|
|
528
|
+
**Tailwind shadow:**
|
|
529
|
+
|
|
530
|
+
```yaml
|
|
531
|
+
- id: class_bg_label
|
|
532
|
+
type: Markdown
|
|
533
|
+
properties:
|
|
534
|
+
content: "**Tailwind background and padding:**"
|
|
535
|
+
- id: class_bg
|
|
536
|
+
type: Pagination
|
|
537
|
+
class: bg-bg-layout p-3 rounded-lg
|
|
538
|
+
properties:
|
|
539
|
+
total: 100
|
|
540
|
+
- id: class_border_label
|
|
541
|
+
type: Markdown
|
|
542
|
+
properties:
|
|
543
|
+
content: "**Tailwind border and centered:**"
|
|
544
|
+
- id: class_border
|
|
545
|
+
type: Pagination
|
|
546
|
+
class: border border-border rounded-lg p-3 flex justify-center
|
|
547
|
+
properties:
|
|
548
|
+
total: 100
|
|
549
|
+
- id: class_shadow_label
|
|
550
|
+
type: Markdown
|
|
551
|
+
properties:
|
|
552
|
+
content: "**Tailwind shadow:**"
|
|
553
|
+
- id: class_shadow
|
|
554
|
+
type: Pagination
|
|
555
|
+
class: shadow-md rounded-lg p-3 bg-bg-container
|
|
556
|
+
properties:
|
|
557
|
+
total: 100
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
**Custom primary color:**
|
|
561
|
+
|
|
562
|
+
**Large pagination items:**
|
|
563
|
+
|
|
564
|
+
**Small rounded items:**
|
|
565
|
+
|
|
566
|
+
**Custom active colors:**
|
|
567
|
+
|
|
568
|
+
**Combined token overrides:**
|
|
569
|
+
|
|
570
|
+
```yaml
|
|
571
|
+
- id: theme_primary_label
|
|
572
|
+
type: Markdown
|
|
573
|
+
properties:
|
|
574
|
+
content: "**Custom primary color:**"
|
|
575
|
+
- id: theme_primary
|
|
576
|
+
type: Pagination
|
|
577
|
+
properties:
|
|
578
|
+
total: 100
|
|
579
|
+
theme:
|
|
580
|
+
colorPrimary: "#722ed1"
|
|
581
|
+
- id: theme_large_items_label
|
|
582
|
+
type: Markdown
|
|
583
|
+
properties:
|
|
584
|
+
content: "**Large pagination items:**"
|
|
585
|
+
- id: theme_large_items
|
|
586
|
+
type: Pagination
|
|
587
|
+
properties:
|
|
588
|
+
total: 100
|
|
589
|
+
theme:
|
|
590
|
+
itemSize: 40
|
|
591
|
+
fontSize: 16
|
|
592
|
+
borderRadius: 20
|
|
593
|
+
- id: theme_small_items_label
|
|
594
|
+
type: Markdown
|
|
595
|
+
properties:
|
|
596
|
+
content: "**Small rounded items:**"
|
|
597
|
+
- id: theme_small_items
|
|
598
|
+
type: Pagination
|
|
599
|
+
properties:
|
|
600
|
+
total: 100
|
|
601
|
+
theme:
|
|
602
|
+
itemSize: 24
|
|
603
|
+
borderRadius: 12
|
|
604
|
+
fontSize: 12
|
|
605
|
+
- id: theme_active_color_label
|
|
606
|
+
type: Markdown
|
|
607
|
+
properties:
|
|
608
|
+
content: "**Custom active colors:**"
|
|
609
|
+
- id: theme_active_color
|
|
610
|
+
type: Pagination
|
|
611
|
+
properties:
|
|
612
|
+
total: 100
|
|
613
|
+
theme:
|
|
614
|
+
colorPrimary: "#0958d9"
|
|
615
|
+
- id: theme_combined_label
|
|
616
|
+
type: Markdown
|
|
617
|
+
properties:
|
|
618
|
+
content: "**Combined token overrides:**"
|
|
619
|
+
- id: theme_combined
|
|
620
|
+
type: Pagination
|
|
621
|
+
properties:
|
|
622
|
+
total: 200
|
|
623
|
+
showSizeChanger: true
|
|
624
|
+
showQuickJumper: true
|
|
625
|
+
showTotal: true
|
|
626
|
+
theme:
|
|
627
|
+
colorPrimary: "#52c41a"
|
|
628
|
+
itemSize: 36
|
|
629
|
+
borderRadius: 8
|
|
630
|
+
fontSize: 14
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
| Property | Type | Default | Description |
|
|
634
|
+
| --- | --- | --- | --- |
|
|
635
|
+
| `total` | integer | `100` | Total number of items to be displayed in pagination. |
|
|
636
|
+
| `size` | string | `"default"` | Pagination element size. Enum: `small`, `default`. |
|
|
637
|
+
| `simple` | boolean | `false` | Use simplified pagination display. |
|
|
638
|
+
| `showTotal` | boolean \| string \| object | `false` | Show pagination total number and range if boolean, or define a custom string or function to display. |
|
|
639
|
+
| `showSizeChanger` | boolean | `false` | Determine whether to show page size select, it will be true when total > 50. |
|
|
640
|
+
| `showQuickJumper` | boolean | `false` | Determine whether you can jump to pages directly. |
|
|
641
|
+
| `pageSizeOptions` | array | `[10,20,30,40]` | Specify the page size changer options. |
|
|
642
|
+
| `hideOnSinglePage` | boolean | `false` | Hide pager on short list of a single page. |
|
|
643
|
+
| `disabled` | boolean | `false` | Disable pager. |
|
|
644
|
+
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design pagination tokens](https://ant.design/components/pagination#design-token). |
|
|
645
|
+
| `theme.itemBg` | string | `"#ffffff"` | Background color for pagination items. |
|
|
646
|
+
| `theme.itemSize` | number | `32` | Size of pagination items. |
|
|
647
|
+
| `theme.itemSizeSM` | number | `24` | Size of pagination items in small mode. |
|
|
648
|
+
| `theme.itemActiveBg` | string | `"#ffffff"` | Background color for the active pagination item. |
|
|
649
|
+
| `theme.itemActiveColor` | string | - | Text color for the active pagination item. |
|
|
650
|
+
| `theme.itemActiveColorDisabled` | string | `"rgba(0,0,0,0.25)"` | Text color for the active item when disabled. |
|
|
651
|
+
| `theme.itemActiveBgDisabled` | string | `"rgba(0,0,0,0.15)"` | Background color for the active item when disabled. |
|
|
652
|
+
| `theme.itemLinkBg` | string | `"#ffffff"` | Background color for prev/next link items. |
|
|
653
|
+
| `theme.itemInputBg` | string | `"#ffffff"` | Background color for the quick jumper input. |
|
|
654
|
+
| `theme.miniOptionsSizeChangerTop` | number | `0` | Top offset for the size changer in mini/small mode. |
|
|
655
|
+
| `theme.colorPrimary` | string | - | Primary color for active and hover states. |
|
|
656
|
+
| `theme.colorPrimaryHover` | string | - | Primary color on hover. |
|
|
657
|
+
| `theme.colorText` | string | - | Default text color for pagination items. |
|
|
658
|
+
| `theme.colorBorder` | string | - | Border color for pagination items. |
|
|
659
|
+
| `theme.borderRadius` | number | `6` | Border radius for pagination items. |
|
|
660
|
+
| `theme.fontSize` | number | `14` | Font size for pagination items. |
|
|
661
|
+
| `theme.controlHeight` | number | `32` | Control height, affects item size. |
|
|
662
|
+
| `theme.paddingBlock` | number | `4` | Vertical padding for pagination items. |
|
|
663
|
+
| `theme.paddingBlockSM` | number | `0` | Vertical padding for small pagination items. |
|
|
664
|
+
| `theme.paddingBlockLG` | number | `7` | Vertical padding for large pagination items. |
|
|
665
|
+
| `theme.paddingInline` | number | `11` | Horizontal padding for pagination items. |
|
|
666
|
+
| `theme.paddingInlineSM` | number | `7` | Horizontal padding for small pagination items. |
|
|
667
|
+
| `theme.paddingInlineLG` | number | `11` | Horizontal padding for large pagination items. |
|
|
668
|
+
|
|
669
|
+
| Event | Event Data | Description |
|
|
670
|
+
| --- | --- | --- |
|
|
671
|
+
| `onSizeChange` | `{ current, pageSize, skip }` | Triggered when page size is changed. |
|
|
672
|
+
| `onChange` | `{ current, pageSize, skip }` | Triggered when current page is changed. |
|
|
673
|
+
|
|
674
|
+
| Key | Target |
|
|
675
|
+
| --- | --- |
|
|
676
|
+
| `/block` | Outer block wrapper (always available). |
|
|
677
|
+
| `/element` | The Pagination element. |
|
|
678
|
+
|
|
679
|
+
No slots defined.
|