Search
Calendar.timetableSettings Property
See Also
 






Gets the TimetableSettings object used to customize the appearance of the Timetable view.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get timetableSettings() {}
set timetableSettings(value) {}

 Property Value

An instance of the TimetableSettings class.

 Example

The following code assigns 20 to the cellSize property of a TimetableSettings instance. 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 view to Timetable, which displays the allotment of resources to distinct hours of a day
calendar.currentView = p.CalendarView.Timetable;

// hide the week numbers header
calendar.timetableSettings.cellSize = 20;

 See Also