Search
Calendar.weekRangeSettings Property
See Also
 






Gets the WeekRangeSettings object used to customize the appearance of the WeekRange view.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get weekRangeSettings() {}
set weekRangeSettings(value) {}

 Property Value

An instance of the WeekRangeSettings class.

 Example

The following code assigns 5 to the visibleRows property of a WeekRangeSettings instance. 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 WeekRange
calendar.currentView = p.CalendarView.WeekRange;

// hide the week numbers header
calendar.weekRangeSettings.visibleRows = 5;

 See Also