Search
CalendarView Enumeration
See Also
 






Specifies the type of view to display in a calendar control.

Namespace: MindFusion.Scheduling
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
CalendarView = {}

 Members

  Member name Description

List

The calendar displays several seconds, minutes, hours, days, weeks, months or years in a row.

MonthRange

The calendar displays several months in a grid. The days of each month are visible too.

ResourceView

The calendar displays the distribution of resources over a period of time.

SingleMonth

The calendar displays a single month at a time. The days of the month are displayed in a grid.

Timetable

The calendar displays a timetable where each row represents a fixed arbitrary time interval and each column represents a day.

WeekRange

The calendar displays a grid of days, with the columns representing the week days from Monday to Sunday and the rows representing weeks.

 Example

The following code initializes a new Calendar and sets its view to 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