Search
Calendar.currentView Property
See Also
 






Gets or sets the type of the current view of the calendar.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get currentView() {}
set currentView(value) {}

 Property Value

One of the CalendarView enumeration members. The type of the current view.

 Example

The following code initializes a new Calendar and sets its view to CalendarView.List. Note: the code assumes you have initialized a <div> element with id "calendar" in a web page that references the JavaScript file with 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 List
calendar.currentView = p.CalendarView.List;

 See Also