Search
Calendar.scheduleChanged Event
See Also
 






Raised when the calendar's schedule has changed.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

 Event Data

The event handler method receives the following arguments:
sender
A Calendar instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
An EventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code shows you how to handle the scheduleChanged event:

JavaScript  Copy Code

// attach a handler - when the schedule has changed
calendar.scheduleChanged.addEventListener(handleScheduleChanged);

function handleScheduleChanged(sender, args) {
    //the args.item argument gives information about the item that was created
    if(sender.schedule.items.count() > 20)
      {
        //handle the event
        ..................
           
      }
}

 See Also