ion-refresher
The refresher provides pull-to-refresh functionality on a content component. The pull-to-refresh pattern lets a user pull down on a list of data using touch in order to retrieve more data.
Data should be modified during the refresher's output events. Once the async
operation has completed and the refreshing should end, call complete()
on the
refresher.
Native Refreshers
Both iOS and Android platforms provide refreshers that take advantage of properties exposed by their respective devices that give pull to refresh a fluid, native-like feel.
Certain properties such as pullMin
and snapbackDuration
are not compatible because much of the native refreshers are scroll-based. See Refresher Properties for more information.
iOS Usage
Using the iOS native ion-refresher
requires setting the pullingIcon
property on ion-refresher-content
to the value of one of the available spinners. See the Spinner Documentation for accepted values. The pullingIcon
defaults to the lines
spinner on iOS. The spinner tick marks will be progressively shown as the user pulls down on the page.
The iOS native ion-refresher
relies on rubber band scrolling in order to work properly and is only compatible with iOS devices as a result. We provide a fallback refresher for apps running in iOS mode on devices that do not support rubber band scrolling.
Android Usage
Using the MD native ion-refresher
requires setting the pullingIcon
property on ion-refresher-content
to the value of one of the available spinners. See the ion-spinner Documentation for accepted values. pullingIcon
defaults to the circular
spinner on MD.