MindFusion.Charting for JavaScript Programmer's Guide
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

Type: String
String. The name of the property that changed.

oldValue

Type: Object
Object. The old value of the property.

newValue

Type: Object
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

PropertyEventArgs Class
MindFusion.Common Namespace