imagesHolder Property

Summary

The HTML Element to use for temporary image loading, when necessary.

Syntax

JavaScript Syntax
Object.defineProperty(ImageLoader.prototype, 'imagesHolder', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
imagesHolder: HTMLElement; 

Property Value

The HTML Element to use for temporary image loading. Default value is null.

Remarks

When loading an SVG-as-IMG (meaning and SVG as an HTML Image Element), the width and height of the image may not be immediately available. In this case, the loaded image is appended to the DOM as a child of ImagesHolder. When Done is fired, Width and Height will be available as always. One ImagesHolder can be used for many ImageLoader instances.

When all Done event callbacks have been run, the Element may be removed from the ImagesHolder if it still exists there. This should be of no concern to the application, as the Element is removed from the ImagesHolder automatically when it is appended somewhere else.

It is recommended to use an ImagesHolder element has styles applied making it invisible to the page:

.my-app-images-holder { 
visibility: hidden; 
} 

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 Assembly