aiyun-vue-scroller
v1.0.1
Published
Vue component for smooth scrolling, pull to refresh & infinite loading.
Downloads
4
Maintainers
Readme
Vue Scroller
Vue Scroller is a foundational component of Vonic UI. In purpose of smooth scrolling, pull to refresh and infinite loading.
For vue 1.0, please refer to branch v1.
Demo
How to use
<div id="app">
<scroller
:on-refresh="refresh"
:on-infinite="infinite"
ref="my_scroller">
<!-- content goes here -->
</scroller>
</div>
Webpack project by vue-cli
https://github.com/wangdahoo/vue-scroller-demo
API
Methods of scroller instance:
- resize() :Void
- triggerPullToRefresh() :Void
- finishPullToRefresh() :Void
- finishInfinite(isNoMoreData :Boolean) :Void
- scrollTo(x:Integer, y:Integer, animate:Boolean) :Void
- scrollBy(x:Integer, y:Integer, animate:Boolean) :Void
- getPosition :Object