Search
Resource.id Property
See Also
 






Gets or sets the string identifier for this resource.

Namespace: MindFusion.Scheduling
File: Resource.js

 Syntax

JavaScript  Copy Code

get id() {}

 Property Value

A String that identifies the 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