Generates a node class whose appearance and properties are defined using JSON template.
Namespace: MindFusion.Diagramming
Assembly: CompositeNode.js
SyntaxJavaScript
Copy Code
|
|---|
function classFromTemplate (className, jsonTemplate, [init]) |
String. Fully qualified name of the class to generate.
Object. A JavaScript object literal containing template of node's component hierarchy.
function. Optional.
CompositeNode. A constructor function that creates instances of the new class.
See Also