Search
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

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