承接 jucksearm/yii2-sly-slider 相关项目开发

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

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

jucksearm/yii2-sly-slider

Composer 安装命令:

composer require jucksearm/yii2-sly-slider

包简介

Yii2 extension is a wrapper for the jquery slider 'sly' http://darsa.in/sly/

README 文档

README

Javascript Sly which can be found here: http://darsa.in/sly/ Support fot horizontal only

Installation

Install via composer:

  composer require "jucksearm/yii2-sly-slider"

OR add this to your composer.json require section

  "jucksearm/yii2-sly-slider": "*",

Install via zip:

download file https://github.com/jucksearm/yii2-sly-slider/archive/master.zip

extract file to vendor folder as:

   vendor
   |- jucksearm
     |- yii2-sly-slider
       | ......

How to use

This extensions is design for widgets, You can call it every where. Example code here:

<?php echo jucksearm\sly\Sly::widget([
    'id' => 'slider',                           ** unique id
    'items'=> [
        ['content' => '<img src=""></img>'],    ** insert images
        ['content' => '<div>test</div>'],       ** insert html DOM
        ...
    ],
    'htmlOptions' => [
        'style' => 'height:200px;',             ** custom options
        'class' => 'slider-h',
        ...
    ],
    'widgetOptions' => [
        'itemNav' => 'basic',                   ** setting widgets
        ...
    ]
]); ?>

Example

You can copy example code in example.php to your view render in some controller.

Option

Detailed description of all available yii2sly widget options.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固