Search
WeekRangeSettings.headerStyle Property
See Also
 






Gets or sets the style of the view header.

Namespace: MindFusion.Scheduling
File: WeekRangeSettings.js

 Syntax

JavaScript  Copy Code

get headerStyle() {}

 Property Value

One of the MainHeaderStyle enumeration values.

 Example

The following code hides the navigation buttons in the header in a WeekRangeSettings instance. 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;

// hides the navigation buttons from the header
calendar.weekRangeSettings.dayOfWeekFormat = p.MainHeaderStyle.None;
calendar.weekRangeSettings.headerStyle = p.HorizontalHeaderStyle.None;
calendar.weekRangeSettings.visibleRows = 5;

 See Also