refreshcomponent can be used inside list/scroller to add pull to refresh functionality, the style of headerview can be set by specifying the style of refresh.loadingcomponent can be used inside list/scroller to add loading view at the bottom of container, the style of footerview can be set by specifying the style of loading.
Notes: refresh and loading is able to contain any type of sub-components you want, default loading animation can be achieved by using loading-indicator component from weex.
loading-indicatordefault loading animation can be achieved by using this component in refresh and loading component,supportscolorproperty; Defaultwidthandheightofloading-indicatoris 0, so it must specify itswidthandheight.
displayis a switch which toggles the visibility of refresh and loading component.displayshould be set toshowin callback ofonrefreshandonloading, and set tohideafter refresh and loading is done.
Other attributes please check out the common attributes.
- support
onrefreshevent 0.5. If arefreshcomponent is insidescroller/list, this event will be triggered when it is pull down refresh. - support
onloadingevent . If aloadingcomponent is insidescroller/list, this event will be triggered when it is pull up loadmore.
see list-basic demo and scroller demo