Search
WeekRangeSettings.dayOfWeekFormat Property
See Also
 






Gets or sets the format of the day names displayed in the day names header.

Namespace: MindFusion.Scheduling
File: WeekRangeSettings.js

 Syntax

JavaScript  Copy Code

get dayOfWeekFormat() {}

 Property Value

One of the DayOfWeekFormat enumeration values.

 Example

The following code renders the days of the week in a WeekRangeSettings instance with a single letter. 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;

// notifies the days of the weeks with a single letter
calendar.weekRangeSettings.dayOfWeekFormat = p.DayOfWeekFormat.SingleLetter;
calendar.weekRangeSettings.dayNamesHeaderStyle = p.HorizontalHeaderStyle.None;
calendar.weekRangeSettings.visibleRows = 5;

 See Also