dev-master
9999999-devA simple slideshow (not only for images). It generates a view
Apache-2.0
The Requires
- yiisoft/yii2 *
- bower-asset/swiper *
by MelleDijkstra
extension yii2 slideshow
A simple slideshow (not only for images). It generates a view
A simple slideshow made with http://idangero.us/swiper., (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist melledijkstra/yii2-slideshow "*"
or add, (*4)
"melledijkstra/yii2-slideshow": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
<?= \melledijkstra\slideshow\Slideshow::widget([ 'items' => [ [ 'content' => 'Slide 1', // tip: $this->render('view'); ], [ 'content' => 'Slide 2', 'active' => true, ] ], // The client options will be passed to the Javascript swiper library // @see http://idangero.us/swiper/api/#parameters 'clientOptions' => [ 'direction' => 'horizontal', 'speed' => 300, 'autoplay' => true, ] ]); ?>
A simple slideshow (not only for images). It generates a view
Apache-2.0
extension yii2 slideshow