JQuery Custom Scrollbar

Component ID

2151303

Component name

JQuery Custom Scrollbar

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1873

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 jcs
drush 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.

Call
drupal_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/