NeptuneLabs FSI Viewer JS User Manual page 127

Table of Contents

Advertisement

5 FSI ImageFlow
Example:
var node = document.createElement("fsi-imageflow");
node.setAttribute("width", "400");
node.setAttribute("height", "600");
node.setAttribute("src", "images/foo/");
node.setAttribute("debug", "true");
document.body.appendChild(node);
$FSI.initCustomNode(node);
// Important: call this AFTER adding the node to the DOM
I) Passing parameters via JavaScript object:
NOTE: In this case any parameters passed via node attribute will be ignored.
Example:
var node = document.createElement("fsi-imageflow");
node.style.width = "600px";
node.style.height = "400px";
var parameters =
{"dir" : "images/foo/", "presentationtype":"flat",
"debug":true};
$FSI.setParameters(node, parameters);
document.body.appendChild(node);
// Important: call this AFTER adding the node to the DOM
$FSI.initCustomNode(node);
Note:
$FSI.initCustomNode(node) initializes the given node.
When adding multiple viewers you can initialize all new FSI ImageFlow nodes in one
go, using this command:
$FSI.initCustomTag("fsi-imageflow");
or, when using different custom tags (fsi-viewer, fsi-imageflow,...):
$FSI.initCustomTags(); to initialize all new FSI custom tags.
127
NeptuneLabs - FSI Viewer

Advertisement

Table of Contents
loading

Table of Contents