philippfrenzel/yii2sly 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

philippfrenzel/yii2sly

最新稳定版本:1.0.0

Composer 安装命令:

composer require philippfrenzel/yii2sly

包简介

jquery sly picture slider extension for yii

README 文档

README

This extension is a wrapper for the amazing jquery slider "sly" which can be found here:

http://darsa.in/sly/

Pls. take a closer look at all the plugin options, which can be passed over by adding them to the "clientOptions" parameter as shown below.

A demo of the extension can be found here:

http://yii2fullcalendar.beeye.org/index.php/site/sly

Installation

Add this to your composer.json require section

  "philippfrenzel/yii2sly": "*",

And finaly the view should look like this:

<?php

use yii\helpers\Url;

?>

<h1><?php echo Html::encode($this->title); ?></h1>

<?= philippfrenzel\yii2sly\yii2sly::widget([
    'id' => 'sp_slider',
    'items'=> [
        ['content' => '<img src="' . Url::to('@web/img/sportster_forty-eight_sly.jpg') . '"></img>'],
        ['content' => '<img src="' . Url::to('@web/img/softtail_heritage-classic_sly.jpg') . '"></img>'],
        ['content' => '<img src="' . Url::to('@web/img/dyna_wide-glide_sly.jpg') . '"></img>'],
        ['content' => '<img src="' . Url::to('@web/img/cvo_limited_sly.jpg') . '"></img>'],
        ['content' => '<img src="' . Url::to('@web/img/v-rod_muscle_sly.jpg') . '"></img>']
    ],
    'options' => [
        'style' => "height:400px;"
    ],
    'clientOptions' => [
        'horizontal' => 1,
        'activateMiddle' => 1,
        ...
    ]
]); ?>

Currently it cause issues with having multiple sly's on one page, but we know this issue and are working on it.

统计信息

  • 总下载量: 1.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固