Gets or sets the current date-time span of the calendar.
Namespace: MindFusion.Common.UI
File: Calendar.js
SyntaxJavaScript
Copy Code
|
|---|
get span() {} |
TimeUnit. One of the TimeUnit enumeration values.
RemarksCurrently supported values are TimeSpan.Day, TimeSpan.Month, TimeSpan.Year and TimeSpan.Decade./
ExampleThe 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 date is 25th of June, 2020. The hour is 14:58. The current span is set to month.
JavaScript
Copy Code
|
|---|
var u = MindFusion.Common.UI; var calendar = u.Calendar(document.getElementById("calendar")); |
See Also