amilna/yii2-nivo-slider
Composer 安装命令:
composer require amilna/yii2-nivo-slider
包简介
Nivo slider widget for Yii2
README 文档
README
A customizable nivo slider plugin for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require "amilna/yii2-nivo-slider" "*"
or add
"amilna/yii2-nivo-slider" : "*"
to the require section of your application's composer.json file.
Since this extensions stil in dev stages, be sure also add following line in composer.json file.
Usage
In view:
use amilna\nivoslider\NivoSlider; echo NivoSlider::widget([ // active data provider or just array of image, url, title and description, exp: [["image"=>"test1.jpg","url"=>null],["image"=>"test2.jpg","url"=>null]] 'targetId'=>'nivoslider', //id of rendered nivoslider (the container will constructed by the widget with the given id) 'imageKey'=>'image', //model attribute to be used as background 'theme' => 'default', //available themes: default, bar, dark, light 'css' => '', // url of css to overide default css relative from @web // example to overide default options more options on http://docs.dev7studios.com/jquery-plugins/nivo-slider 'options'=>[ 'effect'=> 'boxRandom', 'manualAdvance'=>false, 'controlNav'=> false ], ]);
统计信息
- 总下载量: 564
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-04