Search
Resource Class
See Also
 






Instances of the Resource class contain information about arbitrary resources.

Namespace: MindFusion.Scheduling
File: Resource.js

 Syntax

JavaScript  Copy Code

// class
Resource.prototype = {}

 Example

The following code creates a new Resource and adds it to the resources list of a schedule:

JavaScript  Copy Code

var p = MindFusion.Scheduling;
var resource;

// add a resource to the schedule.resources collection
resource = new p.Resource();
resource.name = "Emmy Smith";
resource.id = "K-12";
resource.tag = "Teachers";
calendar.schedule.resources.add(resource);

 Inheritance Hierarchy

 See Also