bupy7 / yii2-flexslider
This package is abandoned and no longer maintained.
No replacement package was suggested.
This is widget wrapper of Flexslider https://github.com/woothemes/FlexSlider for Yii2.
Package info
github.com/bupy7/yii2-flexslider
Language:JavaScript
Type:yii2-extension
pkg:composer/bupy7/yii2-flexslider
v1.0.1
2018-02-09 09:35 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2020-01-20 18:37:46 UTC
README
This is widget wrapper of Flexslider https://github.com/woothemes/FlexSlider for Yii2.
##Installation The preferred way to install this extension is through composer.
Either run
$ php composer.phar require bupy7/yii2-flexslider "dev-master"
or add
"bupy7/yii2-flexslider": "dev-master"
to the require section of your composer.json file.
##How use
Added following code to your view:
... use bupy7\flexslider\FlexSlider; echo FlexSlider::widget([ 'items' => [ '<img src="http://placehold.it/900x400&text=323">', [ 'content' => '<img src="http://placehold.it/900x400&text=001">', 'options' => [ 'class' => 'my-class', ], ], ], ]); ...
##Options of widget
| Name | Description |
|---|---|
| $items | Items of FlexSlider |
| $pluginOptions | FlexSlider plugin options https://github.com/woothemes/FlexSlider/wiki/FlexSlider-Properties |
| $tagSlides | Slides tag. By default 'ul'. |
| $tagItem | Items tag to slides. By default 'li'. |
| $options | FlexSlider widget options. |
| $slidesOptions | Options of slides tag. |
##License
yii2-flexslider is released under the BSD 3-Clause License.