PHP Class TbCarousel

See also: http://twitter.github.com/bootstrap/javascript.html#carousel
Inheritance: extends CWidget
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$displayPrevAndNext indicates whether to display the previous and next links.
$events the Javascript event handlers.
$htmlOptions the HTML attributes for the widget container.
$items the carousel items configuration.
$nextLabel the next button label. Defaults to '›'.
$options the options for the Bootstrap Javascript plugin.
$prevLabel the previous button label. Defaults to '‹'.
$slide indicates whether the carousel should slide items.

Public Methods

Method Description
init ( ) ### .init()
run ( ) ### .run()

Protected Methods

Method Description
renderItems ( array $items ) ### .renderItems()

Method Details

init() public method

Initializes the widget.
public init ( )

renderItems() protected method

Renders the carousel items.
protected renderItems ( array $items )
$items array the item configuration.

run() public method

Runs the widget.
public run ( )

Property Details

$displayPrevAndNext public property

indicates whether to display the previous and next links.
public $displayPrevAndNext

$events public property

the Javascript event handlers.
public $events

$htmlOptions public property

the HTML attributes for the widget container.
public $htmlOptions

$items public property

the carousel items configuration.
public $items

$nextLabel public property

the next button label. Defaults to '›'.
public $nextLabel

$options public property

the options for the Bootstrap Javascript plugin.
public $options

$prevLabel public property

the previous button label. Defaults to '‹'.
public $prevLabel

$slide public property

indicates whether the carousel should slide items.
public $slide