Initializes a new instance of the ImagePicker class.
Namespace: MindFusion.Common.UI
File: ImagePicker.js
JavaScript Copy Code |
---|
function ImagePicker ([element]) |
HTMLElement. The control's associated Dom element.
The following code creates an ImagePicker with an initial list of 3 images and handles its valueChanging event. The constructor uses a reference to a div element with an id "image_picker" that was defined in HTML.
JavaScript Copy Code |
---|
var u = MindFusion.Common.UI; var imagePicker = u.ImagePicker(document.getElementById("image_picker")); imagePicker.valueChanging.addEventListener(handleValueChanging); function handleValueChanging(sender, args) |