Class yeesoft\media\widgets\Carousel

Inheritanceyeesoft\media\widgets\Carousel » yii\bootstrap\Carousel

Widget to render Bootstrap Carousel with images from media album.

Basic usage: ~~~ use yeesoft\media\widgets\Carousel;

echo Carousel::widget(['album' => 'carousel'])

//with custom views echo Carousel::widget([

'album' => 'carousel',
'contentView' => '@frontend/views/carousel/content',
'captionView' => '@frontend/views/carousel/caption',
'itemsOptions' => ['class' => 'some-class']

]); ~~~

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() Initializes the widget. yeesoft\media\widgets\Carousel

Property Details

$album public property
public string $album null
$captionView public property
public string $captionView 'carousel-caption'
$contentView public property
public string $contentView 'carousel-content'
$itemsOptions public property
public array $itemsOptions = []

Method Details

init() public method

Initializes the widget.

public void init ( )