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






Gets the value of the property before the change.

Namespace: MindFusion.Common
File: Events.js

 Syntax

JavaScript  Copy Code

get oldValue() {}

 Property Value

Type: Object
Object. The old property value.

 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.oldValue == "gray")
          {
             //do something
   }
     }
}

 See Also

PropertyEventArgs Members
PropertyEventArgs Class
MindFusion.Common Namespace