setContainerId setcontainerid

JavaScript API reference for Video Viewer.

setContainerId( *containerId*)

Sets the ID of the DOM container (normally a DIV) that the viewer is inserted into. 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. This parameter is 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 section-1d3cf85bc7cc4dfe9670e038d02b9101

None.

Example section-9e9332aa86b74a5fb321375c03fdc5b3

<instance>.setContainerId("s7viewer");
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8