2015-04-03 19:57:57 +00:00
|
|
|
define( [
|
|
|
|
"lib/common",
|
2015-07-15 01:56:36 +00:00
|
|
|
"ui/widgets/autocomplete"
|
2015-04-03 19:57:57 +00:00
|
|
|
], function( common ) {
|
|
|
|
|
|
|
|
common.testWidget( "autocomplete", {
|
2011-04-25 12:10:39 +00:00
|
|
|
defaults: {
|
2012-12-14 14:10:32 +00:00
|
|
|
appendTo: null,
|
2011-04-25 12:10:39 +00:00
|
|
|
autoFocus: false,
|
2014-12-03 16:20:20 +00:00
|
|
|
classes: {},
|
2011-04-25 12:10:39 +00:00
|
|
|
delay: 300,
|
|
|
|
disabled: false,
|
2012-05-15 12:07:35 +00:00
|
|
|
messages: {
|
|
|
|
noResults: "No search results.",
|
|
|
|
results: $.ui.autocomplete.prototype.options.messages.results
|
|
|
|
},
|
2011-04-25 12:10:39 +00:00
|
|
|
minLength: 1,
|
|
|
|
position: {
|
|
|
|
my: "left top",
|
|
|
|
at: "left bottom",
|
|
|
|
collision: "none"
|
|
|
|
},
|
|
|
|
source: null,
|
2010-01-20 14:00:14 +00:00
|
|
|
|
2011-04-25 12:10:39 +00:00
|
|
|
// callbacks
|
|
|
|
change: null,
|
|
|
|
close: null,
|
2011-04-25 18:04:30 +00:00
|
|
|
create: null,
|
2011-04-25 12:10:39 +00:00
|
|
|
focus: null,
|
|
|
|
open: null,
|
|
|
|
response: null,
|
|
|
|
search: null,
|
|
|
|
select: null
|
|
|
|
}
|
|
|
|
});
|
2015-04-03 19:57:57 +00:00
|
|
|
|
|
|
|
} );
|