ImageViewerCreateOptions Object

Summary

Options for creating an ImageViewer

Syntax

JavaScript Syntax
function lt.Controls.ImageViewerCreateOptions 
TypeScript Syntax
class lt.Controls.ImageViewerCreateOptions() 

Remarks

ImageViewerCreateOptions is used as a parameter to the ImageViewer() constructor and is used to specify the required and optional parameters used to create and customize the viewer.

ImageViewerCreateOptions contains the following:

Property Description
ParentDiv An existing div in the HTML page that will act as the parent (container) of the viewer. This property is required and must contain a valid div element in your HTML page.
ParentDivClass CSS class name to apply to the parent div of this image viewer.
ViewLayout Default view layout. If this value null, then the viewer will create an instance of ImageViewerSingleViewLayout, adds an empty item to it and sets it in the ViewLayout property.
UseElements Use real HTML5 elements to render the viewer and its items, or render the images directly into the canvas.
ElementsModeOptions Elements mode-specific settings to use when creating an ImageViewer.
Example

For an example, refer to ImageViewer.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly