Generates a node class whose appearance and properties are defined using JSON template.
Namespace: MindFusion.Diagramming
File: 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.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |