setContainerId

JavaScript API reference for eCatalog Viewer.

setContainerId( *containerId*)

Sets the ID of the DOM container (normally a DIV) into which the viewer is inserted. It is not necessary to have the container element created by the time this method is called. However, the container must exist when init() is run. It must be called before init().

This method is optional if the viewer configuration information is passed with config JSON object to the constructor.

containerId

{string} ID of container.

Returns

None.

Example

<instance>.setContainerId("s7viewer");

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now