elementUrlMode Property

Summary

The method to use for loading the image with an ImageLoader.

Syntax
TypeScript
JavaScript
Object.defineProperty(DocumentImages, 'elementUrlMode', 
   get: function(), 
   set: function(value) 
) 
static elementUrlMode: ImageLoaderUrlMode; 

Property Value

The image loading technique. Default value is ImageLoaderUrlMode.ImageUrl.

Remarks

As discussed in Image Loading using the Document Library, some methods (like GetImageElement) can make requests for HTML or SVG Elements that represent a DocumentPage for a loaded Document. The images are loaded internally with an ImageLoader, and callbacks to resolve the Promise object are attached to that loader.

Since the ImageLoader is not exposed from the method in this case, ElementAjaxMethod and ElementUrlMode are used for default values for the AJAX method type and ImageLoaderUrlMode. However, each of these methods also takes an optional ImageLoader parameter for complete control (like GetImageElement. If this parameter is provided, the values of ElementAjaxMethod and ElementUrlMode are ignored since they can be set with UrlMode and Method, respectively.

See Image Loading using the Document Library for more information.

Requirements

Target Platforms

Help Version 23.0.2024.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.