Example:
oParameters= {};
oParameters.onViewChanged = function(strView){
console.log(strView);
}
var myViewer = new $FSI.Viewer(elContainer, oParameters);
myViewer.start();
// all callback assignments must take place before starting
Method C - Assignment by instance property
Example:
var myViewer = new $FSI.Viewer(elContainer, oParameters);
myViewer.onViewChanged = function(strView){
console.log(strView);
}
myViewer.start();
// all callback assignments must take place before starting
Please note: You can modify or add new callbacks when calling
changeConfig(). You cannot change, add or remove callbacks after
the viewer started.
The following callback methods exist:
onReady();
Called as soon as FSI Viewer finished loading data and gets
interactive.
onDestroy();
Called when the fsi-viewer element is destroyed.
2 FSI Viewer JS
NeptuneLabs - FSI Viewer
82