Constructor

new Carousel(carousel)

Constructor for Carousel. Accepts optional Carousel to clone or list of items to copy.

Parameter

carousel

Optional

(Carousel or Array of OptionItem)

Either a carousel to clone or an array of OptionItem to initialize a new carousel

Property

items

Array of OptionItems

List of 2-20 items to show in this carousel. Required.

Method

addItems

addItems(optionItems) returns Carousel

Adds a single item or list of items to the carousel.

Parameter

optionItems

(OptionItem or Array of OptionItem)

OptionItems to add.

Returns

Carousel Returns current constructed Carousel.