Search
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

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