Component that adds Pull to refresh functionality to an <ons-page> element.
It can be used to perform a task when the user pulls down at the top of the page. A common usage is to refresh the data displayed in a page.
If this attribute is set the “pull-to-refresh” functionality is disabled.
Specify the height of the component. When pulled down further than this value it will switch to the “preaction” state. The default value is “64px”.
Specify the threshold height. The component automatically switches to the “action” state when pulled further than this value. The default value is “96px”. A negative value or a value less than the height will disable this property.
If this attribute is set the content of the page will not move when pulling.
This will be called in the action state if it exists. The function will be given a done callback as it’s first argument.
Hook called whenever the user pulls the element. It gets the pulled distance ratio (scroll / height) and an animationOptions object as arguments.
The height of the pull hook in pixels. The default value is 64px.
The thresholdHeight of the pull hook in pixels. The default value is 96px.
Current state of the element.
The current number of pixels the pull hook has moved.