Search
CompositeNode.classFromTemplate Method
See Also
 





Generates a node class whose appearance and properties are defined using JSON template.

Namespace: MindFusion.Diagramming
File: CompositeNode.js

 Syntax

JavaScript  Copy Code

function classFromTemplate (className, jsonTemplate, [init])

 Parameters

className

String. Fully qualified name of the class to generate.

jsonTemplate

Object. A JavaScript object literal containing template of node's component hierarchy.

init
Optional.

function. Optional.

 Return Value

CompositeNode. A constructor function that creates instances of the new class.

 See Also