Search
Diagram.registerClass Method
See Also
 





Registers a diagram item class.

Namespace: MindFusion.Diagramming
File: Diagram.js

 Syntax

JavaScript  Copy Code

function registerClass (itemClass, className, [classId, [classVersion, [baseType]]])

 Parameters

itemClass

Object. An object identifying the item class.

className

String. A class identifier to use when saving and loading items of the specified type to/from JSON.

classId
Optional.

String. A class identifier to use when saving and loading items of the specified type to/from XML.

classVersion
Optional.

Number. A revision number of the item's class serialization format.

baseType
Optional.

Object. The base class of the item class.

 See Also