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, [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.
NetDiagram Programmer's Guide | © 2023 MindFusion |