chenkby / yii2-swiper
The swiper widget for the Yii framework
Installs: 930
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-widget
Requires
- bower-asset/swiper: >=3.3.1
- fxp/composer-asset-plugin: >=1.0.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-10-27 01:18:55 UTC
README
The swiper slider widget for the Yii framework.
See more here: http://idangero.us/swiper
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require chenkby/yii2-swiper:dev-master
or add
"chenkby/yii2-swiper": "dev-master"
to the require
section of your composer.json
file.
Usage
echo \chenkby\swiper\Swiper::widget([ 'items'=>[ Html::img('http://p2.wmpic.me/article/2016/03/07/1457340934_IhOzsopM.jpg'), Html::img('http://p3.wmpic.me/article/2016/03/07/1457340935_xESOHFOa.jpg'), Html::img('http://p3.wmpic.me/article/2016/03/07/1457340935_VoZtYoSk.jpg') ], 'clientOptions'=>[ 'loop'=>true, ] ]);