Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
/ vue-ps Public archive

Poor performance - better use another library or style your scrollbars with CSS

License

Notifications You must be signed in to change notification settings

MarcErdmann/vue-ps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-ps

Features

  • simple, custom and beautiful scrollbars

Installation

bower install vue-ps

Usage

Include vue-ps after Vue.js, perfect-scrollbar and underscore.js:

<script src="path/to/vue.js"></script>
<script src="path/to/perfect-scrollbar.js"></script>
<script src="bower_components/vue-ps/vue-ps.min.js"></script>

Make your Vue.js components scrollable, e.g.:

Vue.component('dnd-board', {
    template: '#dnd-board',
    ready: function() {
        Vue.ps.initialize(this, {wheelSpeed: 0.3});
    },
    beforeDestroy: function () {
        Vue.ps.destroy(this);
    }
});

About

Poor performance - better use another library or style your scrollbars with CSS

Resources

License

Stars

Watchers

Forks

Packages

No packages published