1.0.4 • Published 9 years ago
vue-cool-scroller v1.0.4
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
Scroller instance methods:
resize()resize scroller contenttriggerPullToRefresh()start pull-to-refresh manuallyfinishPullToRefresh()stop pull-to-refreshfinishInfinite(isNoMoreData :Boolean)stop infinite-loadingscrollTo(x:Integer, y:Integer, animate:Boolean)scroll to a position in scroller contentscrollBy(x:Integer, y:Integer, animate:Boolean)scroll by a position in scroller contentgetPosition :Objectget current position of scroller content