vue-slimscroll

Vue-slimscroll is a directive plugin for Vue.js, which can transforms any div into a scrollable area with a nice scrollbar

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vue-slimscroll
1.0.16 years ago6 years agoMinified + gzip package size for vue-slimscroll in KB

Readme

vue-slimscroll
Vue-slimscroll is a directive plugin for Vue.js, which can transforms any div into a scrollable area with a nice scrollbar. The original jQuery version is herehttps://github.com/rochal/jQuery-slimScroll.

Install

  • Install it by using npm.
``` npm i vue-slimscroll ```
  • Import it at vue project.
``` js import Vue rom 'vue' import VueSlimScroll from 'vue-slimscroll' ... Vue.use(VueSlimScroll) ```

Usage

Using the v-slimscroll directive ``` html
<div v-slimscroll>
...
</div>
``` Using directive with options ``` html
<div v-slimscroll="options">
...
</div>
```
The options is same as jQuery version. See their documentation

License

MIT