guzuomuse / yii2-jquery-custom-content-scroller
yii2 extension:yii2-jquery-custom-content-scroller based on jquery custom content scroller
Package info
github.com/guzuomuse/yii2-jquery-custom-content-scroller
Language:JavaScript
Type:yii2-extension
pkg:composer/guzuomuse/yii2-jquery-custom-content-scroller
dev-master
2014-07-30 06:49 UTC
This package is not auto-updated.
Last update: 2026-03-24 15:14:26 UTC
README
yii2 extension:yii2-jquery-custom-content-scroller based on "jquery custom content scroller"
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist "guzuomuse/yii2-jquery-custom-content-scroller": "dev-master"
or add
"guzuomuse/yii2-jquery-custom-content-scroller": "dev-master"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?php JqueryCustomContentScroller::begin([ 'options'=>[ ], 'pluginOptions'=>[ 'setWidth'=>'100%', 'axis'=>'x', 'scrollButtons'=>new JsExpression('{enable:true}'), 'theme'=>'rounded-dark', // 'scrollInertia'=>3000, 'scrollbarPosition'=>'outside', 'autoHideScrollbar'=>true, // 'autoExpandScrollbar'=>true, ], ]); ?>