开发者

Autocomplete in Dojo using a textbox as opposed to a dropdown

开发者 https://www.devze.com 2022-12-12 17:44 出处:网络
Dojo\'s Autocomplete widget requires that I have a dropdown to start off with. Is there a way to create an autocomplete box in Dojo which starts out with a textbox like YUI\'s? I\'m trying to use Dojo

Dojo's Autocomplete widget requires that I have a dropdown to start off with. Is there a way to create an autocomplete box in Dojo which starts out with a textbox like YUI's? I'm trying to use Dojo because that's what we use here in the project, also trying to modify existing JSP pages to have autocomplete. These pages don't have the fields as dropdowns (ie 开发者_如何学Go"select")


New answer to an old question: The FilteringSelect widgit is a fairly robust auto-complete control.

The first example here shows a text field being used as the base element: http://dojotoolkit.org/reference-guide/1.8/dijit/form/FilteringSelect.html


I think dojox.form.MultiComboBox is what you are looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消