nicescroll Add a nice scroll bar to a dom element.

  1. Requirements
  2. Usage
  3. Resources

This extension allows you to simply add a nice scroll bar to any element of your DOM. It has mousewheel and hover capability.

Requirements

Yii 1.1.X (built with Yii 1.1.16 but should work in earlier versions.

Usage

Example code to attache a nice scroll barr to "#id-of-zone-to-scroll":

$commentId="id-of-zone-to-scroll";
$this->widget(
    "ext.ENiceScroll.ENiceScroll",
    array(
          'selector'=>"#{$commentId}",
          'preservenativescrolling'=>false,
          'cursorwidth'=>20,
          'cursoropacitymax'=>'0.7'
    )
);

Many more options available - check out the widget or http://areaaperta.com/nicescroll/.

Resources

1 0
2 followers
179 downloads
Yii Version: 1.1
License: MIT
Category: User Interface
Developed by: le_top
Created on: Apr 20, 2015
Last updated: 9 years ago

Downloads

show all

Related Extensions