Search
MonthSettings.weekHeaderStyle Property
See Also
 






Gets or sets the style of the view week numbers header.

Namespace: MindFusion.Scheduling
File: MonthSettings.js

 Syntax

JavaScript  Copy Code

get weekHeaderStyle() {}

 Property Value

One of the VerticalHeaderStyle enumeration values.

 Example

The following code uses the weekHeaderStyle property of MonthSettings to hide the weeks header in a calendar. 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