S
S
Sergey Andrianov2017-01-20 02:55:36
JavaScript
Sergey Andrianov, 2017-01-20 02:55:36

Yii2 Carousel Gallery possible?

Can you tell me if it is possible to display a carousel in this form in Yii2?
270f47ce9ee84acd84583f86a0cd9e40.png

Carousel output in Yii2.

<div class="row">
    <?php echo Carousel::widget([
        'items' => $slider,
        'options' => [
            'style' => 'width:100%; height:500px; padding-top:51px', // Задаем ширину контейнера
            'data-interval' => '1000',
            
        ]
    ]);
    ?>
</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-01-20
@qonand

If I understand correctly, you need this

S
Sergey Andrianov, 2017-01-20
@Batiss

If you transfer all the code to yii view, it still displays one image at a time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question