Search
Picker Class
Remarks See Also
 






A base class for picker controls.

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

 Syntax

JavaScript  Copy Code

// class
Picker.prototype = {}

 Remarks

Classes that derive from Picker include ImagePicker and DateTimePicker.

 Example

The following code creates an ImagePicker programmatically and appends it to an HTML element called "image_list":

JavaScript  Copy Code

var ui = MindFusion.Common.UI;

function loadImageWindow(sender)
{

    var imagePicker = u.ImagePicker();
    sender.element.querySelector("#image_list").appendChild(imagePicker.draw());
    imagePicker.attach();
}

 Inheritance Hierarchy

MindFusion.Common.UI.UIControl
    MindFusion.Common.UI.Picker
        MindFusion.Common.UI.CheckListPicker
        MindFusion.Common.UI.DateTimePicker
        MindFusion.Common.UI.ImagePicker

 See Also