Search
VerticalHeaderStyle Enumeration
See Also
 






Specifies the appearance of a vertical header in the calendar.

Namespace: MindFusion.Scheduling
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
VerticalHeaderStyle = {}

 Members

  Member name Description

Left

The header is displayed to the left side of the calendar.

None

The header is not displayed.

Right

The header is displayed to the right side of the calendar.

 Example

The following code assings VerticalHeaderStyle.None value to the weekHeaderStyle property of a MonthSettings instance 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