Description
Carousel module helps you to create live editable carousel widget.
Include
use yii\easyii\modules\carousel\api\Carousel;
Public functions
array Carousel::widget( $width, $height, $clientOptions = [] )
|
$width |
integer |
Carousel width |
$height |
integer |
Carousel height |
$clientOptions |
array |
Widget options
|
Returns Bootstrap carousel widget
|
Public Properties
$title |
string |
Carousel item title |
$text |
string |
Carousel item description |
$image |
string |
Path to image |
$link |
string |
Carousel item link |
$model |
yii\db\ActiveRecord |
Carousel ActiveRecord object |
Public Functions
string thumb( $width, $height = null, $crop = true )
|
$width |
int |
Thumbnail width |
$height |
int |
Thumbnail height |
$crop |
boolean |
Crop or resize image to thumbnail sizes |
Returns path to image thumbnail |