Search
Resource.tag Property
See Also
 






Gets or sets custom data associated with the resource.

Namespace: MindFusion.Scheduling
File: Resource.js

 Syntax

JavaScript  Copy Code

get tag() {}

 Property Value

An Object. Values can be o any type.

 Remarks

Use the property to store data, relative to this Resource, that is useful for your application.

 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