Skip to content

Commit cf71e0b

Browse files
committed
Update README.md
Description of the reload(startIndex) method
1 parent fde44a6 commit cf71e0b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,16 @@ Adapater object implements the following methods
139139
* Method `reload`
140140

141141
reload()
142+
or
143+
144+
reload(startIndex)
142145

143146
#### Description
144-
calling this method reinitializes and reloads the scroller content. This method is introduced as a replacement for the revision method of the datasource, which is now deprecated.
147+
Calling this method reinitializes and reloads the scroller content. `startIndex` is an integer indicating what item index the scroller will use to start the load process. Calling `reload()` is equivalent to calling `reload(1)`.
148+
149+
**important: `startIndex` should fall within underlying datset boundaries** The scroller will request two batches of items one starting from the `startIndex` and another one preceding the first one (starting from `startIndex - bufferSize`). If both requests come back empty, the scroller will consider the dataset to be empty and will place no further data requests.
150+
151+
This method is introduced as a replacement for the revision method of the datasource, which is now deprecated.
145152

146153
* Method `applyUpdates`
147154

0 commit comments

Comments
 (0)