Constructor

new Carousel(carousel)

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

Parameter

Name Description

carousel

(Carousel or Array of OptionItem)

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

Method

addItems

addItems(optionItems) returns Carousel

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

Parameter

Name Description

optionItems

(OptionItem or Array of OptionItem)

OptionItems to add.

Returns

Carousel Returns current constructed Carousel.