Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Small pull to refresh tutorial fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IjzerenHein committed Dec 4, 2014
1 parent d1f24e5 commit aa6ba42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tutorials/FlexScrollView.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ var scrollView = new FlexScrollView({
});
```
Whenever the user pulls on header or footer (the pull down height is 2x the height of the renderable), the `refresh` event is emitted:
Whenever the user pulls on header or footer, the `refresh` event is emitted:
```javascript
scrollView.on('refresh', function(event) {
Expand Down Expand Up @@ -365,7 +365,8 @@ scrollView.hidePullToRefresh(footer);
scrollView.isPullToRefreshVisible(footer);
```
To animate your pull to refresh renderable while pulling, create a custom view and implement the `setPullToRefreshStatus` on it. When pulling starts, stops or changes state, the FlexScrollView will call `setPullToRefreshStatus(state)` on the renderable to indicate these state changes.
To animate your pull to refresh renderable while pulling, create a custom view and implement the `setPullToRefreshStatus` on it. When pulling starts, stops or changes state, the FlexScrollView will call `setPullToRefreshStatus(state)` on the renderable to indicate these state changes. Additionally, the
FlexScrollView asks the renderable for the desired pull length for triggering the refresh (`getPullToRefreshSize`).
See [famous-refresh-loader](https://github.com/IjzerenHein/famous-refresh-loader) for an example on how to create a responsive pull to refresh view.
Expand Down

0 comments on commit aa6ba42

Please sign in to comment.