ComboBox.js 1.1 KB

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