Registers a schedule item or resource class for serialization support.
Namespace: MindFusion.Scheduling
Assembly: Schedule.js
SyntaxJavaScript
Copy Code
|
|---|
function registerClass (itemClass, xmlClassId, jsonClassId, classVersion) |
Object. An object identifying the class.
String. A class identifier to use when saving and loading objects of the specified type to and from XML.
String. A class identifier to use when saving and loading objects of the specified type to and from JSON.
Number. A revision number of the objects's class serialization format.
ExampleThe following code shows how to register a custom event class called CustomEvent:
JavaScript
Copy Code
|
|---|
| var p = MindFusion.Scheduling; p.Schedule.registerClass(CustomEvent, "[custom:customEvent]", "customEvent", 1); |
See Also