Search
ValueChangingEventArgs Class
See Also
 






Specifies data for valueChanging events.

Namespace: MindFusion.Common.UI
File: EventArgs.js

 Syntax

JavaScript  Copy Code

// class
ValueChangingEventArgs.prototype = {}

 Example

The following code handles the valueChanging event of an ImagePicker:

JavaScript  Copy Code

var u = MindFusion.Common.UI;

var imagePicker = u.ImagePicker(document.getElementById("image_picker"));
imagePicker.valueChanging.addEventListener(handleValueChanging);

function handleValueChanging(sender, args)
{
    //check if an image has been selected and uploaded
    if(args.oldValue.url != "my-folder/myImage.png")
    {
       args.cancel = true;
    }
}

 Inheritance Hierarchy

MindFusion.Common.UI.EventArgs
    MindFusion.Common.UI.CancelEventArgs
        MindFusion.Common.UI.ValueChangingEventArgs

 See Also