Skip to content

Commit fd21af7

Browse files
committed
v1.5.2. release data
1 parent 5d3809b commit fd21af7

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This becomes a real problem if the html representing a row has event handlers an
88
complexity can easily introduce 20 watchers per row. Which for a list of 100 rows gives you total of 2000 watchers and a sluggish app.
99

1010
uiScroll directive
11-
-------------------
11+
-------------------
1212

1313
[![Build Status](https://travis-ci.org/angular-ui/ui-scroll.svg?branch=master)](https://travis-ci.org/angular-ui/ui-scroll) [![npm version](https://badge.fury.io/js/angular-ui-scroll.svg)](http://badge.fury.io/js/angular-ui-scroll) [![Bower version](https://badge.fury.io/bo/angular-ui-scroll.svg)](http://badge.fury.io/bo/angular-ui-scroll) [![Join the chat at https://gitter.im/angular-ui/ui-scroll](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-ui/ui-scroll?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1414

@@ -119,8 +119,8 @@ exactly `count` elements unless it hit eof/bof
119119

120120
#### Description
121121
As the scroller recieves the items requested by the `get` method, the value of minimum and maximum values of the item index are placed in the `minIndex` and `maxIndex` properties respectively. The values of the properties are cumulative - the value of the `minIndex` will never increase, and the value of the `maxIndex` will never decrease - except the values are reset in response to a call to the adapter `reload` method. The values of the properties are used to maintain the appearance of the scroller scrollBar.
122-
123-
Values of the properties can be assigned programmatically. If the range of the index values is known in advance, assigneing them programmatically would improve the usability of the scrollBar.
122+
123+
Values of the properties can be assigned programmatically. If the range of the index values is known in advance, assigneing them programmatically would improve the usability of the scrollBar.
124124

125125
###Adapter
126126
The adapter object is an internal object created for every instance of the scroller. Properties and methods of the adapter can be used to manipulate and assess the scroller the adapter was created for. Adapter based API replaces old (undocumented) event based API introduced earlier for this purpose. The event based API is now deprecated and no longer supported.
@@ -149,7 +149,7 @@ Adapater object implements the following methods
149149
#### Description
150150
returns `true` if the last item of the dataset is already in the buffer. No further requests for tailing items will be issued, returns `false` otherwise,
151151

152-
* Method `reload`
152+
* Method `reload`
153153

154154
reload()
155155
or
@@ -158,10 +158,10 @@ Adapater object implements the following methods
158158

159159
#### Description
160160
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. The value of the argument replaces the value provided with the start-index attribute. Calling `reload()` is equivalent to calling `reload` method with current value of the `start-index` attribute .
161-
162-
**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.
163-
164-
* Method `applyUpdates`
161+
162+
**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.
163+
164+
* Method `applyUpdates`
165165

166166
applyUpdates(index, newItems)
167167
#### Description
@@ -181,18 +181,18 @@ Adapater object implements the following methods
181181

182182
append(newItems)
183183
#### Description
184-
Adds new items after the last item in the buffer.
184+
Adds new items after the last item in the buffer.
185185
#### Parameters
186186
* **newItems** provides an array of items to be appended.
187187

188188
* Method `prepend`
189-
189+
190190
prepend(newItems)
191191
#### Description
192192
Adds new items before the first item in the buffer.
193193
#### Parameters
194194
* **newItems** provides an array of items to be prepended.
195-
195+
196196
####Manipulating the scroller content with adapter methods
197197

198198
Adapter methods `applyUpdates`, `append` and `prepend` provide a way to update the scroller content without full reload of the content from the datasource. The updates are performed by changing the items in the scroller internal buffer after they are loaded from the datasource. Items in the buffer can be deleted or replaced with one or more items.
@@ -225,7 +225,7 @@ uiScrollTh and uiScrollTd directives
225225
-------------------
226226
###Description
227227

228-
The uiScrollTh and uiScrollTd directives provide a way to build flexible dynamic grids. Handling of grid rows is done by the uiScroll directive itself. In addition to this uiScrollTh and uiScrollTd directive provide tools to programmatically change grid layout, inclduing applying styles to columns, changing column size and order, as well as saving the modifications to the layout and applying previosly saved layouts.
228+
The uiScrollTh and uiScrollTd directives provide a way to build flexible dynamic grids. Handling of grid rows is done by the uiScroll directive itself. In addition to this uiScrollTh and uiScrollTd directive provide tools to programmatically change grid layout, inclduing applying styles to columns, changing column size and order, as well as saving the modifications to the layout and applying previosly saved layouts.
229229
At this point the above functionality is supported only for table based scrollable grids.
230230

231231
###Usage
@@ -252,11 +252,11 @@ Here is the basic html template for scrollable grid using the uiScrollTh and uiS
252252

253253
### Dependencies
254254

255-
The grid directives have the same dependency requirements as the uiScroll directive itself. To use the directives make sure the `ui.scroll.grid` module is on the list of the module dependencies. Also you have to load the dist/ui-scroll-grid.js file in your page.
255+
The grid directives have the same dependency requirements as the uiScroll directive itself. To use the directives make sure the `ui.scroll.grid` module is on the list of the module dependencies. Also you have to load the dist/ui-scroll-grid.js file in your page.
256256

257257
### Controlling scrollable grid with the GridAdapter
258258

259-
GridAdapter object (along with ColumnAdapter objects) provides methods and properties to be used to change the scrollable grid layout. A reference to this object is injected as a property named `gridAdapter`in the scroller adapter.
259+
GridAdapter object (along with ColumnAdapter objects) provides methods and properties to be used to change the scrollable grid layout. A reference to this object is injected as a property named `gridAdapter`in the scroller adapter.
260260

261261
`GridAdapter` object implements the following properties:
262262

@@ -276,7 +276,7 @@ GridAdapter object (along with ColumnAdapter objects) provides methods and prope
276276

277277
###Examples
278278

279-
Examples ([look here for sources](https://github.com/angular-ui/ui-scroll/tree/master/demo/examples)) consist of several pages (.html files) showing various ways to use the ui-scroll directive. Each page relays on its own datasource service (called `datasource`) defined in the javascript file with the same name and .js extension.
279+
Examples ([look here for sources](https://github.com/angular-ui/ui-scroll/tree/master/demo)) consist of several pages (.html files) showing various ways to use the ui-scroll directive. Each page relays on its own datasource service (called `datasource`) defined in the javascript file with the same name and .js extension.
280280

281281
I intentionally broke every rule of proper html/css structure (i.e. embedded styles). This is done to keep the html as bare bones as possible and leave
282282
it to you to do it properly - whatever properly means in your book.
@@ -285,6 +285,10 @@ To run the examples use this [link](http://rawgithub.com/angular-ui/ui-scroll/ma
285285

286286
###History
287287

288+
###v1.5.2
289+
* Refactored assignable expressions and attributes scope bindings.
290+
* Added new demos and tests. fixed IE compatibility.
291+
288292
###v1.5.1
289293
* Refactored adjustments during elements append/prepend.
290294
* Bof/eof information is accessible out of the scroller.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-scroll",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"homepage": "https://github.com/angular-ui/ui-scroll.git",
55
"description": "AngularJS infinite scrolling module",
66
"main": "./dist/ui-scroll.js",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-ui-scroll",
33
"description": "two way infinite scroll",
4-
"version": "1.5.1",
4+
"version": "1.5.2",
55
"src": "./src/",
66
"public": "./public/",
77
"main": "./dist/ui-scroll.js",

0 commit comments

Comments
 (0)