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
@@ -88,7 +88,7 @@ Data source is an object to be used by the uiScroll directive to access the data
88
88
The directive will locate the object using the provided data source name. It will first look for a property with the given name on its $scope.
89
89
If none found it will try to get an angular service with the provided name.
90
90
91
-
The datasource object implements methods and properties to be used by the directive to access the data:
91
+
The data source object implements methods and properties to be used by the directive to access the data:
92
92
93
93
* Method `get`
94
94
@@ -103,7 +103,7 @@ The datasource object implements methods and properties to be used by the direct
103
103
* **descriptor** is an object defining the portion of the dataset requested. The object will have 3 properties. Two of them named `index` and `count`. They have the same meaning as in the alternative signature when the parameters passed explicitly (see below). The third one will be named either `append` if the items will be appended to the last item in the buffer, or `prepend` if they are to be prepended to the first item in the buffer. The value of the property in either case will be the item the new items will be appended/prepended to. This is useful if it is easier to identify the items to be added based on the previously requested items rather than on the index. Keep in mind that in certain use cases (i.e. on initial load) the value of the append/prepend property can be undefined.
104
104
* **index** indicates the first data row requested
105
105
* **count** indicates number of data rows requested
106
-
* **success** function to call when the data are retrieved. The implementation of the datsource has to call this function when the data are retrieved and pass it an array of the items retrieved. If no items are retrieved, an empty array has to be passed.
106
+
* **success** function to call when the data are retrieved. The implementation of the data source has to call this function when the data are retrieved and pass it an array of the items retrieved. If no items are retrieved, an empty array has to be passed.
107
107
108
108
**Important:** Make sure to respect the `index` and `count` parameters of the request. The array passed to the success method should have
0 commit comments