Search
ItemModifiedEventArgs.action Property
See Also
 






Gets the type of action that is modifying the item.

Namespace: MindFusion.Scheduling
File: EventArgs.js

 Syntax

JavaScript  Copy Code

get action() {}

 Property Value

One of the ItemModifyAction enumeration values.

 Example

The following example attaches a handler to the itemModified event of a calendar. In the handler method we check if the item was dragged to another location. If so, we save its previous start date.

JavaScript  Copy Code

// attach a handler - when a calendar item is modified.
calendar.itemModified.addEventListener(handleItemModified);

function handleItemModified(sender, args) {
    /* the args.action argument gives information about
     * the action that was performed on the item */
     if(args.action == p.ItemModifyAction.Drag)
          {
              var oldStartDate = args.oldItem.startTime;
          }
     
}

 See Also