first steps towards autocomplete

This commit is contained in:
Rolux 2010-02-18 12:57:32 +05:30
commit 301a9759db
2 changed files with 123 additions and 60 deletions

View file

@ -326,6 +326,19 @@
}
]
}).addClass("margin").width(96).appendTo(mainPanel);
Ox.Input({
id: "auto",
autocomplete: function(value, callback) {
callback([
"Alabama", "Alaska", "Arizona", "California",
"Indiana", "Illinois", "Iowa",
"Kansas", "Kentucky",
"Michigan", "New York",
"Tennessee"
]);
},
placeholder: "State"
}).addClass("margin").width(96).appendTo(mainPanel);
//*/
function switchTheme() {
if (Ox.theme() == "classic") {