Search
TimetableSettings.titleFormat Property
See Also
 






Gets or sets the string used to format the header title.

Namespace: MindFusion.Scheduling
File: TimetableSettings.js

 Syntax

JavaScript  Copy Code

get titleFormat() {}

 Property Value

A string that specifies the format e.g. "'MM/DD/YYYY h:mm a".

 Example

The following code sets the title format to short date. 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
this.calendar = new p.Calendar(document.getElementById("calendar"));

// set the view to MonthRange, which displays several months in a grid
calendar.currentView = p.CalendarView.Timetable;
calendar.timetableSettings.headerStyle = p.MainHeaderStyle.Title;
calendar.timetableSettings.titleFormat = calendar.formatInfo.dateFormats.shortDate;

 See Also