2017 © Pedro Peláez
 

yii2-extension yii2-slideshow

A simple slideshow (not only for images). It generates a view

image

melledijkstra/yii2-slideshow

A simple slideshow (not only for images). It generates a view

  • Friday, November 18, 2016
  • by MelleDijkstra
  • Repository
  • 1 Watchers
  • 0 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 18 % Grown

The README.md

Yii2 Slideshow

A simple slideshow made with http://idangero.us/swiper., (*1)

Installation

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)

Usage

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,
    ]
]); ?>

The Versions

18/11 2016

dev-master

9999999-dev

A simple slideshow (not only for images). It generates a view

  Sources   Download

Apache-2.0

The Requires

 

by Avatar MelleDijkstra

extension yii2 slideshow