Gets or sets the number of units between adjacent ticks in the timeline.
Namespace: MindFusion.Scheduling
File: TimelineSettings.js
JavaScript Copy Code |
---|
get unitCount() {} |
Number. The number of units between adjacent ticks in the timeline.
The following code sets the time unit of the bottom timeline in a calendar to Days and the count of units between adjacent ticks to 3 (days). 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; calendar.resourceViewSettings.bottomTimelineSettings.unit = p.TimeUnit.Days; calendar.resourceViewSettings.bottomTimelineSettings.unitCount = 3; |