valekstepanov / yii2-flexslider
This is widget wrapper of Flexslider https://github.com/woothemes/FlexSlider for Yii2.
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 7
Language:JavaScript
Type:yii2-extension
Requires
- php: >=7.1
This package is auto-updated.
Last update: 2025-07-10 18:49:57 UTC
README
This is widget wrapper of Flexslider https://github.com/woothemes/FlexSlider for Yii2.
Forked from https://github.com/bupy7/yii2-flexslider
##Installation The preferred way to install this extension is through composer.
Either run
$ php composer.phar require valekstepanov/yii2-flexslider "~1.0.3"
or add
"valekstepanov/yii2-flexslider": "~1.0.3"
to the require section of your composer.json file.
##How use
Added following code to your view:
... use valekstepanov\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.