Skip to content

Commit b9e161a

Browse files
authored
feat: Infinite scroll (#2876)
## Description Provide a concise summary of the changes made in this pull request - ## Pull request type Check the appropriate box: - [ ] Review Fixes - [ ] Documentation Overhaul - [ ] Feature/Story - Link one or more Engineering Tickets * - [ ] A-Force - [ ] Error in documentation - [ ] Maintenance ## Documentation tickets Link to one or more documentation tickets: - ## Checklist From the below options, select the ones that are applicable: - [ ] Checked for Grammarly suggestions. - [ ] Adhered to the writing checklist. - [ ] Adhered to the media checklist. - [ ] Verified and updated cross-references or added redirect rules. - [ ] Tested the redirect rules on deploy preview. - [ ] Validated the modifications made to the content on the deploy preview. - [ ] Validated the CSS modifications on different screen sizes.
1 parent 76f9572 commit b9e161a

File tree

1 file changed

+28
-0
lines changed
  • website/docs/reference/widgets/table

1 file changed

+28
-0
lines changed

website/docs/reference/widgets/table/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,34 @@ For instance, you can create a Count query to retrieve the total number of recor
151151

152152
</dd>
153153

154+
#### Infinite scroll `boolean`
155+
156+
<dd>
157+
158+
When enabled, this property allows the Table widget to dynamically load more records as users scroll, creating an intuitive browsing experience for large datasets.
159+
160+
This property becomes available only when **Server-side pagination** is enabled. Make sure both the **onPageChange** and **onPageSizeChange** events are configured to fetch the correct data based on the current scroll position.
161+
162+
*How It Works*:
163+
164+
- Infinite scroll dynamically updates the Table’s pagination properties and triggers data loads as users interact with the widget:
165+
166+
- The **onPageChange** event is triggered to run the linked query or API with the new `pageNo`.
167+
168+
- The number of records fetched per scroll is determined by `Table.pageSize`.
169+
170+
- A loading indicator appears at the bottom while new records are being fetched.
171+
172+
173+
The following Table features are automatically disabled when infinite scroll is enabled to ensure consistent server-driven data behavior:
174+
175+
- Client-side search
176+
- Client-side filtering and sorting
177+
- Inline editing
178+
- Adding new rows
179+
180+
</dd>
181+
154182
#### onPageChange
155183

156184
<dd>

0 commit comments

Comments
 (0)