Search
MonthSettings Class
Remarks See Also
 






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

Namespace: MindFusion.Scheduling
File: MonthSettings.js

 Syntax

JavaScript  Copy Code

// class
MonthSettings.prototype = {}

 Remarks

The monthSettings property of a calendar should be used only when currentView is set to CalendarView.SingleMonth.

 Example

The following code uses the monthSettings property of a calendar to hide the weeks header. 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 calendar view to SingleMonth, which displays one month at a time
calendar.currentView = p.CalendarView.SingleMonth;

// hide the week numbers header
calendar.monthSettings.weekHeaderStyle = p.VerticalHeaderStyle.None;

 Inheritance Hierarchy

MindFusion.Scheduling.MonthSettings

 See Also