removeImageViewer()

Description

Deletes a specified image viewer.

Syntax

DCSObject.removeImageViewer(string imageContainerId);

Parameters

<string> imageContainerId: The id of image container.

Return value

bool

true indicates success. false indicates failure.

Remarks

If the image viewer has unfinished tasks, for example, uploading images hasn't finished, it returns false.

Example

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