0.0.6 • Published 7 years ago

vue-qm-perfect-scrollbar v0.0.6

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

A Vue.js plugin for perfect-scrollbar

Installation

Install through npm

npm install vue-qm-perfect-scrollbar --save
require('perfect-scrollbar/dist/css/perfect-scrollbar.min.css')
// Require dependencies
var Vue = require('vue');
var VuePs = require('vue-qm-perfect-scrollbar');
// Tell Vue to use the plugin
Vue.use(VuePs);

github

https://github.com/awtmeng/vue-qm-perfect-scrollbar

Usage

The plugin is available through this.$ps in components or js.Ps

Example
// To initialise the plugin

let container = this.$refs.test[0]
this.$ps.initialize(container, {
  wheelSpeed: 2,
  wheelPropagation: true,
  minScrollbarLength: 20
});

// If the size of your container or content changes, call update.

this.$ps.update(container);

// If you want to destroy the scrollbar, use destroy.

this.$ps.destroy(container);
0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago