在什么情况下可以使用自动建议文本框?
我有数据库中特定产品的品牌名称列表。我可以使用下拉菜单或自动建议文本框将其显示在屏幕上。
我喜欢自动建议文本框的用户体验。但是,用在这里合适吗?
我还想知道使用它的最佳场景?
I have a list of brand names for a particular product in the db. I can either display it on the screen using a drop down or and auto-suggest textbox.
I love the user experience of the auto-suggest textbox. But, is it right to use it here?
I would also want to know the best scenario to use it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为这取决于您需要展示的项目数量。如果只有少数,它几乎没有任何优势。但当项目很多时,你可以用它来过滤掉很多项目,直到只剩下几个。这使得找到合适的物品变得更加容易。
I think it depends on the number of items you need to display. If there are only a few, it gives hardly any advantage. But when there are many items, you can use it to filter out a lot of items, until there are only a few left. This makes finding the right item easier.
当用户大多数时候要输入新数据时,应使用自动建议文本框...而当用户大多数时候要输入重复数据时,应使用下拉框。
The Auto-Suggest textbox should be used when the user will be entering in a new piece of data MOST of the time... and the dropdown box should be used when the user will be entering repeated data MOST of the time.
您可以两者都提供吗?我开发的一款产品有一个品牌名称下拉列表,但也允许用户输入自由文本。当您键入字符时,下拉列表会缩小。
编辑:
这是使用Java:
JComboBox.setEditable(true)
如果我没记错的话,还有一些额外的摆弄。Can you offer both? One of the products I worked on had a drop down list of brand names but allowed the user to type free text as well. The drop down list would narrow as you typed characters.
EDIT:
This was using Java:
JComboBox.setEditable(true)
with some additional fiddling if I remember right.