You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/routes/docs/[...3]plugins/[...7]add-pagination/+page.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,14 @@ If `true`, the pagination plugin will have no effect on the rows of the table. I
64
64
65
65
_Defaults to `false`_.
66
66
67
+
### `serverItemCount: Writable<number>`
68
+
69
+
The total number of items expected from the server.
70
+
71
+
When using server-side pagination, the number of items in `$data` only reflects the number of items in the page and not the number of total items. To calculate the right number of pages required, the plugin needs to know how many items in total are expected.
72
+
73
+
_Required when `serverSide = true`_.
74
+
67
75
## Column Options
68
76
69
77
:::callout
@@ -138,12 +146,6 @@ Whether a next page is available.
138
146
139
147
The total number of pages derived from the number of rows and page size.
140
148
141
-
### `serverItemCount: Writable<number>`
142
-
143
-
The total number of items expected from the server.
144
-
145
-
When using server-side pagination, the number of items in `$data` only reflects the number of items in the page and not the number of total items. To calculate the right number of pages required, the plugin needs to know how many items in total are expected.
0 commit comments