Search
Calendar.resourceViewSettings Property
See Also
 






Gets the ResourceViewSettings object used to customize the appearance of the Resource view.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get resourceViewSettings() {}
set resourceViewSettings(value) {}

 Property Value

An instance of the  ResourceViewSettings class.

 Example

The following code uses the resourceViewSettings property of a calendar to set the number of timelines. Note: the code assumes you have initialized a <div> element with id “calendar” in a web page that references the JavaScript file, which contains this code:

JavaScript  Copy Code
var p = MindFusion.Scheduling;
// create a new instance of the calendar
calendar = new p.Calendar(document.getElementById("calendar"));
// set the view to ResourceView, which displays the distribution of resources over a period of time
calendar.currentView = p.CalendarView.ResourceView;
// sets the number of timelines to two
calendar.resourceViewSettings.timelines = 2;

 See Also