Search
Calendar.monthSettings Property
See Also
 






Gets the MonthSettings object used to customize the appearance of the SingleMonth view.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get monthSettings() {}
set monthSettings(value) {}

 Property Value

An instance of the MonthSettings class.

 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;

 See Also