chenkby/yii2-swiper
Composer 安装命令:
composer require chenkby/yii2-swiper
包简介
The swiper widget for the Yii framework
README 文档
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, ] ]);
统计信息
- 总下载量: 982
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-03-24