提示自动输入程序库及使用示例

本文介绍了一种自动提示API,该API能够实现输入框内的自动补全功能。通过数据与视图的分离,使得该API具备高度灵活性及易修改性,能够适配多种应用需求。具体而言,UIAutoSuggest负责获取文本输入框和列表的数据,而AbstractAutoSuggest则根据用户的交互动态排序词汇列表。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

导读:


拼写提示API可以用来在输入框里自动提示一个输入。数据显示的分离使得自动提示API程序库灵活而且易于修改,并且可以适用于不同的应用程序。UIAutoSuggest获得输入框和列表的输入,AbstractAutoSuggest 根据用户的交互将一列单词保持排序。同时数据是可以绑定的,这样就使得输入框内的数据可以和所提示的输入同步。


版权声明
示例和源代码参看


http://elromdesign.com/blog/Flex/API/AutoSuggest/


程序库的API文档
http://elromdesign.com/blog/Flex/API/asdoc/


AutoSuggest API can be used to display an Auto Suggest input box. The separation of the data and view is what makes AutoSuggestion API flexible and easy to modify and fit different application. The UIAutoSuggest gets TextInput and TileList and the AbstractAutoSuggest keep sorting the list of words based on user interaction, the data is bindable which allow the TileList and TextInput to be updates on the fly.


All source code contained on this page has been published under the MIT licence and is protected as stated therein.


AutoSuggest.jpg


To see an example and download source code:
http://elromdesign.com/blog/Flex/API/AutoSuggest/


To view the ASDOC of the API:
http://elromdesign.com/blog/Flex/API/asdoc/
本文转自
http://elromdesign.com/blog/2008/02/15/autosuggest/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值