English 中文(简体)
Sencha Touch文区自动完工?
原标题:Autocomplete for textfield in Sencha Touch?

I m making an flight search app with Sencha Touch and have encountered a small problem.

我想为所有机场建立一个机场,需要自动化功能,以便用户能够选择离境机场和返回机场。 如何执行? 机场将通过XML-schema装载,我似乎无法找到这方面的任何良好文件。

预言!

最佳回答

由于那里没有习俗成分,我也需要像我这样的东西,我把这 together在一起。

So, here it is. Sencha Touch 2 Autocomplete Textfield component: https://github.com/martintajur/sencha-touch-2-autocomplete-textfield

目前,日本利用美国宇宙航空研究开发机构的要求对汽车配对者进行掩饰。 它还支持用户的海关投入。

在形式数据序列化时,这类投入的价值是:

  • the selected item ID in case user has selected a matched autocomplete result
  • the typed text when the user has not chosen an autocomplete result

It is very basic at the moment and completely driven by own need for such a control. Feel free to fork, modify, adapt. It s MIT-licenced.

问题回答

我认为,你应使用“@Ismailp”所建议的搜索场,而不是文字现场。

然后,你应该在其重要活动上设立一个人口小组,其中应包括机场清单。

在下载的“sen”框架中,通过暗藏的笔记清单研究。 它显示了如何通过清单搜索。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签