Gets or sets a value indicating whether empty input is considered valid.
Namespace: MindFusion.Common.UI
File: Picker.js
JavaScript Copy Code |
---|
get allowEmptyInput() {} |
Boolean. true if empty input will be considered valid, otherwise false.
The following code creates an ImagePicker with an initial list of 3 images and handles its valueChanging event. The image picker does not allow empty values:
JavaScript Copy Code |
---|
var u = MindFusion.Common.UI; var imagePicker = u.ImagePicker(document.getElementById("image_picker")); imagePicker.valueChanging.addEventListener(handleValueChanging); function handleValueChanging(sender, args) |