addImageViewer()

Description

Add an image viewer.

Syntax

DCSObject.addImageViewer(string imageContainerId);

Parameters

<string> imageContainerId: The id of an image container.

Return value

ImageViewer

Remarks

The image viewer container must be a DIV element.

If the image viewer with the same image container id already exists, it returns null.

Example

if (DCSObject) {
   DCSObject.addImageViewer("DCSImageViewerContainer2");
}