Search
DayView.maxTime Property
See Also
 






Gets or sets the maxmimum value displayed in the view.

Namespace: MindFusion.Common.UI
File: DayView.js

 Syntax

JavaScript  Copy Code

get maxTime() {}

 Property Value

Number. The maximum value in milliseconds.

 Example

The following code creates a new Calendar instance using a reference to an HTML div with an id "calendar". The view is set to DayView and the interval is set to one hour. The max time is 19 o'clock.

JavaScript  Copy Code

var u = MindFusion.Common.UI;

var calendar = u.Calendar(document.getElementById("calendar"));
calendar.view = new u.DayView();

//1 hour in milliseconds
calendar.interval = 3600000;

//max time is 19 o'clock
calendar.maxTime = 64800000;

 See Also