aki/yii2-image-slider

Image Slider for yii2

Installs: 1 174

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 3

Open Issues: 2

Type:yii2-extension

1.0.1 2017-03-21 08:45 UTC

This package is auto-updated.

Last update: 2024-10-29 04:53:05 UTC


README

Image Slider for yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require aki/yii2-image-slider "*"

or add

"aki/yii2-image-slider": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \aki\imageslider\ImageSlider::widget([
	'baseUrl' => Yii::getAlias('@web/images'),
    'nextPerv' => false,
    'indicators' => false,
    'height' => '170px',
    'classes' => 'img-rounded',
    'images' => [
        [
            'active' => true,
            'src' => 'image/a.jpg',
            'title' => 'image',

        ],
        [
            'src' => 'image/b.jpg',
            'title' => 'image',
    	]
    ],
]); ?>