语言

Menu
Sites
Language
Pull-To-Refresh feature

How can I implement a pull-to-refresh feature in my wearable web app?

pulling down should refresh data on the screen (calling an API)

 

Any help greaty apreciated!

响应

2 回复
Marco Buettner

You can use https://github.com/apeatling/web-pull-to-refresh

But aware: the pulldown gesture is in wearables the "back"-function, so maybe you need to implement it reverse

Rich Mabb

Hi Marco nd thank you for your reply.

 

I've seen someposts about using        

$("#.selector").page('refresh');*/

Is this an option?

how can it be usedto refresh a function call?

 

-R