Registers a schedule item or resource class for serialization support.
Namespace: MindFusion.Scheduling
File: Schedule.js
JavaScript 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.
The 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); |