JQuery Custom Scrollbar
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
jQuery Custom Scrollbar
Drupal's way for jQuery Custom Scrollbar plugin.
Requirements:
Download the original plugin from:
https://github.com/mzubala/jquery-custom-scrollbar, unpack it then move it to:
sites/all/libraries/jquery-custom-scrollbar.
The module expect these files to work properly:
- libraries/jquery-custom-scrollbar/jquery.custom-scrollbar.js
- libraries/jquery-custom-scrollbar/jquery.custom-scrollbar.css
Installation & activation
For convenience, install and enable the Drupal module with drush:drush dl jcsdrush en -y jcs
How to use:
Method 1.
Once installed, go to: /admin/config/user-interface/jquery-custom-scrollbar
Optionally set pages on which the js will be loaded and which selectors to apply scrollbar (see above screenshot).
Method 2.
Calldrupal_add_library('jquery_custom_scrollbar', 'jquery_custom_scrollbar')
and the two lib files mentionned above will be loaded from your custom php.
Official jQuery plugin page: http://plugins.jquery.com/custom-scrollbar/
