lecion / vue-perfect-scrollbar

scrollbar for vue, depend on perfect-scrollbar(https://github.com/noraesae/perfect-scrollbar)
243 stars 25 forks source link

How to update scroll #22

Closed paulotra closed 5 years ago

paulotra commented 5 years ago

how do i update the scroll bar like ps.update()

mercs600 commented 5 years ago

You can use this wrapper: https://github.com/mercs600/vue2-perfect-scrollbar then you can reach ps object by $refs

ghost commented 5 years ago

Why was this closed? So if we want to use ps.update() we need to use another project? Do I have to adjust all places in my project where I use vue-perfect-scrollbar and replace it with vue2-perfect-scrollbar? This not really nice... Isn't there a chance to introduce ps.update()?

wildwest-service commented 4 years ago

You can run ps.update().

Try writing <VuePerfectScrollbar ref="ps">. This gives you access to this.$refs.ps.update().