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

 Syntax

JavaScript  Copy Code

function classFromTemplate (className, jsonTemplate)

 Parameters

className

Fully qualified name of the class to generate.

jsonTemplate

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