\TbCarousel

## Bootstrap carousel widget.

Summary

Methods
Properties
Constants
init()
run()
$prevLabel
$nextLabel
$slide
$displayPrevAndNext
$items
$options
$events
$htmlOptions
No constants found
renderIndicators()
renderItems()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$prevLabel

$prevLabel : string

Type

string — the previous button label. Defaults to '‹'.

$nextLabel

$nextLabel : string

Type

string — the next button label. Defaults to '›'.

$slide

$slide : boolean

Type

boolean — indicates whether the carousel should slide items.

$displayPrevAndNext

$displayPrevAndNext : boolean

Type

boolean — indicates whether to display the previous and next links.

$items

$items : array

Type

array — the carousel items configuration.

$options

$options : array

Type

array — the options for the Bootstrap Javascript plugin.

$events

$events : string[]

Type

string[] — the Javascript event handlers.

$htmlOptions

$htmlOptions : array

Type

array — the HTML attributes for the widget container.

Methods

init()

init()

### .init()

Initializes the widget.

run()

run()

### .run()

Runs the widget.

renderIndicators()

renderIndicators()

renderItems()

renderItems(array $items)

### .renderItems()

Renders the carousel items.

Parameters

array $items

the item configuration.