custom-scroller-px-rem
v0.1.1
Published
Vue component for smooth scrolling, pull to refresh & infinite loading. Supprt px and rem.
Downloads
3
Maintainers
Readme
custom-croller-px-rem
How to use
<scroller
:on-refresh="refresh"
:on-infinite="infinite">
<!-- content goes here -->
</scroller>
API
Scroller instance methods:
resize()
resize scroller contentDeprecated, casuse the scroller's content resizes self automatically.
triggerPullToRefresh()
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 :Object
get current position of scroller content
This component is a customized edition for personal use based on "Vue-scroller". Added rem support and some other features like requesting control. Take a look at code if you have interest. I did't change too much of it.