Search
ItemModifyingEventArgs.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 itemModifying event of a calendar. In the handler method we check if the modifying action was "Resize". If yes, we cancel the action e.g. the user was not able to modify this event.

JavaScript  Copy Code

// 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 that was being modified */
     if(args.action == ItemModifyAction.Resize)
          {
              args.cancel = true;
          }
     
}

 See Also