guzuomuse / yii2-nicescroll
yii2-nicescroll描述
dev-master
2014-07-04 15:38 UTC
This package is not auto-updated.
Last update: 2024-09-24 07:44:00 UTC
README
yii2-nicescroll描述
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一
php composer.phar require --prefer-dist "guzuomuse/yii2-nicescroll": "dev-master"
或
""guzuomuse/yii2-nicescroll": "dev-master"
将其添加到您的 composer.json 文件的 require 部分。
用法
一旦安装了扩展,只需在您的代码中使用它即可
\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}'), ], ]);
您想要通过 nicescroll 渲染的内容……
\guzuomuse\nicescroll\NiceScroll::end();