Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 563 Bytes

carousel.md

File metadata and controls

30 lines (22 loc) · 563 Bytes

Carousel

Encore\Admin\Widgets\CarouselUsed to generate carousel components:

use Encore\Admin\Widgets\Carousel;

$items = [
    [
        'image' => 'http://xxxx/xxx.jpg',
        'caption' => 'xxxx',
    ],
    [
        'image' => 'http://xxxx/xxx.jpg',
        'caption' => 'xxxx',
    ],
    [
        'image' => 'http://xxxx/xxx.jpg',
        'caption' => 'xxxx',
    ],
];

$carousel = new Carousel($items);

echo $carousel->render();

The Carousel::__construct($items), $items parameter sets the content element of the sliding album.