Search
DateChangedEventArgs Class
See Also
 






Specifies data for the visibleDateChanged event.

Namespace: MindFusion.Scheduling
File: EventArgs.js

 Syntax

JavaScript  Copy Code

// class
DateChangedEventArgs.prototype = {}

 Example

The following code handles the visibleDateChanged event with a method that loads JSON data for the calendar from an url.

JavaScript  Copy Code

/ handle the visibleDatechanged event to load the corresponding data when the calendar month is changed
calendar.visibleDateChanged.addEventListener(getData);

function getData()
{
 var url = 'http://calapi.inadiutorium.cz/api/v0/en/calendars/default/' + calendar.date.year + '/' + (+calendar.date.month+1);

 fetch(url)
 .then(response => response.json())
 .then((data) => {
  loadCalendar(data)
 })
 .catch(err => { throw err });
}

 Inheritance Hierarchy

MindFusion.Scheduling.EventArgs
    MindFusion.Scheduling.DateChangedEventArgs

 See Also