Gets or sets the total number of months to be displayed in the MonthRange view.
Namespace: MindFusion.Scheduling
File: MonthRangeSettings.js
JavaScript Copy Code |
---|
get numberOfMonths() {} |
Number. The number of months to be displayed in the view.
The following code uses the monthRangeSettings property of a calendar to assign its value to an html <select> element with an id “numberOfMonths”. 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 document.getElementById("numberOfMonths").value = calendar.monthRangeSettings.numberOfMonths; |