Specifies the type of view to display in a calendar control.
Namespace: MindFusion.Scheduling
File: Enum.js
JavaScript Copy Code |
---|
// enum |
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. |
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 |