Search
Calendar.itemReminderTriggered Event
See Also
 






Raised when an item remider is triggered.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

EventDispatcher itemReminderTriggered

 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 ItemEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following example attaches a handler to the itemReminderTriggered event of a calendar. In the handler method we check if the event starts after 19 o'clock.

JavaScript  Copy Code

var p = MindFusion.Scheduling;

// attach a handler - when the reminder of a calendar item is triggered.
calendar.itemReminderTriggered.addEventListener(handleItemReminderTriggered);

function handleItemReminderTriggered(sender, args) {
    /* the args.item argument gives information about
     * the item whose reminder was triggered */
     if(args.item.startTime.hour > 19)
            //do something
            ...............
     
}

 See Also