MindFusion.Charting for JavaScript Programmer's Guide
PropertyEventArgs.propertyName Property
See Also
 






Gets the name of the property that changed.

Namespace: MindFusion.Common
File: Events.js

 Syntax

JavaScript  Copy Code

get propertyName() {}

 Property Value

Type: String
String. The name of the property.

 Example

The following code handles the propertyValueChanged event for a Calendar instance, which uses data of type PropertyEventArgs.

JavaScript  Copy Code

calendar.propertyValueChanged.addEventListener(handlePropertyChanged);

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

 See Also

PropertyEventArgs Members
PropertyEventArgs Class
MindFusion.Common Namespace