承接 mrnicky/yii2-responsiveslides 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.15k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-19