Search
PropertyEventArgs Constructor
See Also
 






Initlializes a new instance of the PropertyEventArgs class.

Namespace: MindFusion.Common
File: Events.js

 Syntax

JavaScript  Copy Code

function PropertyEventArgs (propertyName, oldValue, newValue)

 Parameters

propertyName

String. The name of the property that changed.

oldValue

Object. The old value of the property.

newValue

Object. The new value of the property.

 Example

The following code handles the propertyValueChanged event for a Calendar instance.

JavaScript  Copy Code

calendar.propertyValueChanged.addEventListener(handlePropertyChanged);

function handlePropertyChanged (sender, args )
{
     if(args.propertyName === "theme")
     {
          if(args.newValue == "gray")
          {
             //do something
   }
     }
}

 See Also