Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Controls)

Tag Property (ImageViewerItem)

Show in webframe
Example 
Optional user defined data associated with this item.
Syntax
get_tag();
set_tag(value);
Object.defineProperty('tag');

Property Value

TypeDescription
ObjectThe optional user defined data associated with this item. Default value is null.
Remarks

This value is not used by LEADTOOLS. You can set any value here for the purpose of your application.

For more information, refer Image Viewer Items.

Example
for (var i = 0; i < this._imageViewer.items.count; i++) {
   var item = this._imageViewer.items.item(i);
   var pageNumber = item.tag; // we already save the page number in Tag in other example, you can save any data you want in this object

   // for example, update the item text to have page number ...
   item.text = "Page " + pageNumber;
}
See Also

Reference

ImageViewerItem Object
ImageViewerItem Members

Error processing SSI file