Gets or sets the validation state of the control.
Namespace: MindFusion.Common.UI
File: Picker.js
JavaScript Copy Code |
---|
get state() {} |
ValidationState. One of the ValidationState enumeration values.
The following code creates an ImagePicker with an initial list of 3 images and handles its valueChanging event where it checks its state.
JavaScript Copy Code |
---|
var u = MindFusion.Common.UI; var imagePicker = u.ImagePicker(document.getElementById("image_picker")); imagePicker.valueChanging.addEventListener(handleValueChanging); function handleValueChanging(sender, args) |