Search
MonthRangeSettings Class
See Also
 






Defines properties that allow customization of the appearance of a MonthRange view.

Namespace: MindFusion.Scheduling
File: MonthRangeSettings.js

 Syntax

JavaScript  Copy Code

// class
MonthRangeSettings.prototype = {}

 Example

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
calendar = new p.Calendar(document.getElementById("calendar"));
// set the view to  MonthRange
calendar.currentView == p.CalendarView.MonthRange;

document.getElementById("numberOfMonths").value = calendar.monthRangeSettings.numberOfMonths;

 Inheritance Hierarchy

MindFusion.Scheduling.MonthRangeSettings

 See Also