/
ComboBox.js
33 lines (30 loc) · 1.03 KB
/
ComboBox.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
define([
"dojo/_base/kernel",
"..",
"./ValidationTextBox",
"./ComboBoxMixin",
"dojo/_base/declare" // dojo.declare
], function(dojo, dijit){
// module:
// dijit/form/ComboBox
// summary:
// Auto-completing text box
dojo.declare("dijit.form.ComboBox", [dijit.form.ValidationTextBox, dijit.form.ComboBoxMixin], {
// summary:
// Auto-completing text box
//
// description:
// The drop down box's values are populated from an class called
// a data provider, which returns a list of values based on the characters
// that the user has typed into the input box.
// If OPTION tags are used as the data provider via markup,
// then the OPTION tag's child text node is used as the widget value
// when selected. The OPTION tag's value attribute is ignored.
// To set the default value when using OPTION tags, specify the selected
// attribute on 1 of the child OPTION tags.
//
// Some of the options to the ComboBox are actually arguments to the data
// provider.
});
return dijit.form.ComboBox;
});