简体   繁体   English

如何在HTML文档中使用Titanium API创建文本框

[英]How to create textbox with titanium api in a html doc

Hi have created a file login.html and display it using webview. 嗨,您已经创建了一个文件login.html并使用webview进行显示。 However, I would like to create the text box with titanium javascript and not html tag. 但是,我想用纯钛javascript而不是html标签创建文本框。 Can anyone give me an example on this? 谁能给我一个例子吗?

i do not believe all of the titanium functions are available in the webview. 我不认为Web视图中提供了所有钛功能。

if they are then I would suggest you use the this method 如果是,那么我建议您使用此方法

http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.TextField-object http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.TextField-object

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM