Skip to content

Spell6inder/yii2-swiper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-swiper

The swiper slider widget for the Yii framework.

See more here: http://idangero.us/swiper

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require chenkby/yii2-swiper:dev-master

or add

"chenkby/yii2-swiper": "dev-master"

to the require section of your composer.json file.

Usage

echo \chenkby\swiper\Swiper::widget([
    'items'=>[
        Html::img('http://p2.wmpic.me/article/2016/03/07/1457340934_IhOzsopM.jpg'),
        Html::img('http://p3.wmpic.me/article/2016/03/07/1457340935_xESOHFOa.jpg'),
        Html::img('http://p3.wmpic.me/article/2016/03/07/1457340935_VoZtYoSk.jpg')
    ],
    'clientOptions'=>[
        'loop'=>true,
    ]
]);

About

The swiper widget for the Yii framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%