mrnicky/yii2-responsiveslides
Composer 安装命令:
composer require mrnicky/yii2-responsiveslides
包简介
Simple & lightweight responsive slider plugin widget
README 文档
README
The yii 2 widget to create simple responsive slider.
Installation via Composer
Add this line to "require" section of your composer.json file:
"mrnicky/yii2-responsiveslides": "dev-master" Using
echo \mrnicky\slides\ResponsiveSlides::widget([ 'template' => 'default', 'images' => [ Html::img('/images/1.jpg'), Html::img('/images/2.jpg'), Html::img('/images/3.jpg'), ], 'clientOptions' => [ 'maxwidth' => 800, 'auto' => true, 'speed' => 500, ], ]); There are a few templates of view with own clientOptions.
default
'maxwidth' => 800, 'auto' => true, 'speed' => 500, dots
'auto' => false, 'pager' => true, 'nav' => true, 'speed' => 500, 'maxwidth' => 800, 'namespace' => 'transparent-btns', numbers
'auto' => false, 'pager' => true, 'speed' => 300, 'maxwidth' => 540 thumbnail
'manualControls' => '#slider3-pager', 'maxwidth' => 540, For more examples, visit the Official page of plugin.
统计信息
- 总下载量: 12.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04