init

JavaScript API reference for Carousel Viewer.

init()

Starts the initialization of the Carousel Viewer. By this time the container DOM element must be created so that the viewer code can find it by its ID.

If the container element is not a part of the web page layout yet – for example, it may be hidden using display:none style – the viewer suspends its initialization process. It is suspended until the moment when the web page brings the container element back to the layout, at which point the viewer load automatically resumes.

Call this method only once during viewer life cycle; subsequent calls are ignored.

Parameters

None.

Returns

{Object} A reference to the viewer instance.

Example

<instance>.init()

On this page