setContainerId

Last update: 2021-12-06
  • Created for:
  • Developer
    User

JavaScript API reference for Smart Crop 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

None.

Example

<instance>.setContainerId("s7viewer");

On this page