ASP.NET Pack Programmer's Guide
CompositeNode.classFromTemplate Method
See Also

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

Namespace: MindFusion.Diagramming
Package: CompositeNode.js


JavaScript  Copy Code

function classFromTemplate (className, jsonTemplate)



Fully qualified name of the class to generate.


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

 Return Value

Type: Function
A constructor function that creates instances of the new class.

 See Also

CompositeNode Members
CompositeNode Class
MindFusion.Diagramming Namespace