Search
Picker.validateInput Method
See Also
 






Validates keyboard input.

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

 Syntax

JavaScript  Copy Code

function validateInput ()

 Example

The following code creates an ImagePicker with an initial list of 3 images and handles its valueChanging event, where it validates keyboard input:

JavaScript  Copy Code

var imagePicker = u.ImagePicker(document.getElementById("image_picker"));
imagePicker.imageList = ["my-folder/myImage.png", "my-folder1/myImage1.png", "my-folder2/myImage2.png"];

imagePicker.valueChanging.addEventListener(handleValueChanging);

function handleValueChanging(sender, args)
{
     sender.valiedateInput();
}

 See Also