Defines properties that allow customization of the appearance of a Resource view.
Namespace: MindFusion.Scheduling
File: ResourceViewSettings.js
JavaScript Copy Code |
---|
// class |
The resourceViewSettings property of a calendar should be used only when the currentView of the calendar is CalendarView.ResourceView.
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; |
MindFusion.Scheduling.ResourceViewSettings