70001121 I would like a callback that called when an External Reference file is loaded

Article 70001121
Type Wish
Product WebJS
Version 7
Date Added 7/7/2017
Fixed 7.7012.0.3 (7/7/2017)
Submitted by Development Contractor

Summary

I would like a callback that called when an External Reference file is loaded

Solution

In version 7012.0.3 a new callback vdXrefLoaded of vdcanvas control was added
It is called when an External Reference Block is completly loaded.

Example:
vdcanvas.vdXrefLoaded = _vdXrefLoaded;
function _vdXrefLoaded(xrefargs) {
console.log('The External reference block with name ' + xrefargs.Block.Name + ' and full path = ' + xrefargs.OriginalPath + ' loaded');
}

Send comments on this topic.