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/.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.