autoItemElementsAdded Event (ImageViewer)

Summary

Occurs after an item HTML elements are re-added to the DOM.

Syntax

JavaScript Syntax
Object.defineProperty(ImageViewer.prototype,'autoItemElementsAdded',  
	get: function(), 
	set: function(value) 
) 
function autoItemElementsAdded.add(function(sender, e)); 
function autoItemElementsAdded.remove(function(sender, e)); 
TypeScript Syntax
autoItemElementsAdded: void; 

Remarks

This event is occurs only if the viewer is using Elements Mode and if the value of ImageViewerElementsModeCreateOptions.AutoRemoveItemElements was true when this control is created.

AutoItemElementsAdded and AutoItemElementsRemoved can be used to track when an item goes out of view and its elements are deleted from the DOM or when the item re-enters the view and its elements are re-created. AutoItemElementsAdded occurs after the item enters the view and its elements are created and AutoItemElementsRemoved occurs before the item is deleted, therefore, all the item's elements are still in the DOM and can be accessed when this event occurs.

Refer to Image Viewer Elements Mode for more information.

Event Data
ParameterTypeDescription
sendervarThe source of the event.
eImageViewerRenderEventArgsThe event data.
Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls Assembly
Click or drag to resize