Overview
Scrollbar is a very simple Drupal module to implement the jScrollPane javascript functionality to your Drupal and make the css selectors get a custom jQuery scrollbar.
Requirements
7.x only: Libraries
Installation
Install with Composer:
$ composer require 'drupal/scrollbar:^1.1'
- Download and install the module.
- Download all the required and complementary files from the github repo at github so they appear under the libraries/jscrollpane folder.
For 8.x version there is a drush command for this: drush scrollbar-plugin
.
Theme settings
On your theme css add one or more styles for the element you want to get the custom jQuery scrollbar.
For example, if you want to apply the .jScrollPane() function to the .field--name-body
element just add this piece on your theme CSS
.field--name-body {
height: 200px;
overflow: auto;
}
For more examples of using this library please refer to the official manual at http://jscrollpane.kelvinluck.com/index.html#examples,
Configuration
Go to admin/config/user-interface/scrollbar and configure as you want.
For more information on how to use the jScrollPane() parameters please refer to the jScrollPane settings page.
Similar projects
Credits
Unlimited thanks to Kelvin Luck for this excellent jQuery plugin.
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Content Display, Developer Tools, Integrations
- 194 sites report using this module
- Created by TheodorosPloumis on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-2.x-dev updated 25 Sep 2013 at 10:07 UTC