Search
Resource.name Property
See Also
 






Gets or sets the name for this resource.

Namespace: MindFusion.Scheduling
File: Resource.js

 Syntax

JavaScript  Copy Code

get name() {}

 Property Value

A String that represents the name of 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