Constructor

BrowseCarousel

new BrowseCarousel(carousel)

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

Parameter

carousel

Optional

(BrowseCarousel or Array of BrowseItem)

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

Property

items

Array of BrowseItem

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

Methods

addItems

addItems(browseItems) returns BrowseCarousel

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

Parameter

browseItems

(BrowseItem or Array of BrowseItem)

BrowseItems to add.

Returns

BrowseCarousel Returns current constructed Browse Carousel.

setImageDisplay

setImageDisplay(option) returns BrowseCarousel

Sets the display options for the images in this carousel. Use one of the image display constants. If none is chosen, ImageDisplays.DEFAULT will be enforced.

Parameter

option

string

The option for displaying the image.

Returns

BrowseCarousel Returns current constructed Browse Carousel.