Search
Resource Constructor
See Also
 






Initializes a new instance of the Resource class.

Namespace: MindFusion.Scheduling
File: Resource.js

 Syntax

JavaScript  Copy Code

function Resource ()

 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);

 See Also