guzuomuse / yii2-nicescroll
yii2-nicescroll-descriptin
Installs: 942
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 1
Language:JavaScript
Type:yii2-extension
This package is not auto-updated.
Last update: 2024-05-07 05:55:06 UTC
README
yii2-nicescroll-descriptin
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist "guzuomuse/yii2-nicescroll": "dev-master"
or add
""guzuomuse/yii2-nicescroll": "dev-master"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
\guzuomuse\nicescroll\NiceScroll::begin([ // 'id'=>'nicescroll_parent_div', 'options'=>[ ], 'pluginOptions'=>[ // 'cursorborder'=>'5px dotted #FF0000', 'smoothscroll'=>false, "cursorcolor"=>"#9C9A9C", 'cursorwidth'=>'8px', // 'boxzoom'=>true, // 'cursorborderradius'=>'10px', // 'scrollspeed'=>60, // 'background'=>'#00ff00', //// 'bouncescroll'=>true, // 'railoffset'=> new yii\web\JsExpression('{top:0,left:0}'), // 'railpadding'=>new \yii\web\JsExpression('{top:0,right:0,left:0,bottom:0}'), ], ]);
some contents your want to rendered by nicescroll......
\guzuomuse\nicescroll\NiceScroll::end();