Search
ItemModifiedEventArgs.item Property
See Also
 






Gets the Item that was modified.

Namespace: MindFusion.Scheduling
File: EventArgs.js

 Syntax

JavaScript  Copy Code

get item() {}

 Property Value

Item. The Item that was modified.

 Example

The following example attaches a handler to the itemModified event of a calendar. In the handler method we check if the subject of the this item is "Conference". If it is, we cance the action e.g. the user was not able to modify the item.

JavaScript  Copy Code

var p = MindFusion.Scheduling;

// attach a handler - when a calendar item is being modified.
calendar.itemModifying.addEventListener(handleItemModifying);

function handleItemModifying(sender, args) {
    /* the args.item argument gives information about
     * the item ater the modification. */
     if(args.item.subject == "Conference")
          {
              args.cancel = true;
          }
     
}

 See Also