Yii 2.0: yii2-slick-carousel

The yii2 widget to the fantastic slick-carousel.
6 followers

yii2-slick

the Preview http://kenwheeler.github.io/slick/

The yii2 widget to the fantastic slick-carousel. This widget generate you the only the javascript.

Installation Composer

drmabuse/yii2-slick-carousel:"*"

Installation Assets Bower

cd vendor/drmabuse/yii2-slick-carousel/web

bower install

Using

    <?php \drmabuse\slick\SlickWidget::widget([
        'container' => '.single-item',
        'settings'  => [
            'slick' => [
                'infinite'      =>  true,
                'slidesToShow'  =>  3,
                'onBeforeChange'=> new \yii\web\JsExpression('function(){
                }'),
                'onAfterChange' => new \yii\web\JsExpression('function(){
                    console.debug(this);
                }'),
                'responsive' => [
                    [
                        'breakpoint'=> 768,
                          'settings'=> [
                              'arrows'=> false,
                              'centerMode'=> true,
                              'centerPadding'=> 40,
                              'slidesToShow'=> 3
                          ]
                    ]
                ],
            ],
            'slickGoTo'         => 3,
        ]
    ]); ?>

    <div class="slider single-item">
        <div><h3>1</h3></div>
        <div><h3>2</h3></div>
        <div><h3>3</h3></div>
        <div><h3>4</h3></div>
        <div><h3>5</h3></div>
        <div><h3>6</h3></div>
    </div>

Github

Total 1 comment

#17408 report it
Lerstat1968 at 2014/06/05 01:59pm
Installation problem

I can't installa package with composer.

Now trying to download from dist - Installing drmabuse/yii2-slick-carousel (dev-master 85bd870) Downloading: connection...

Composer\Downloader\TransportException The "https://api.github.com/repos/brewing/yii2-slick/zipball/85bd870d7af767 10e85d99b371eb97cdc744b690" file could not be downloaded (HTTP/1.1 404 Not Found)

Leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet