Skip to content

Instantly share code, notes, and snippets.

@milon120203
Last active October 22, 2019 18:38
Show Gist options
  • Save milon120203/b0c215f3752c2340a9f9c84680c3dca7 to your computer and use it in GitHub Desktop.
Save milon120203/b0c215f3752c2340a9f9c84680c3dca7 to your computer and use it in GitHub Desktop.
Textfield value property, setting textfield value from js file
function onClick() {
Ti.API.info('@@@ Setting focus');
alert($.Text1.getValue());
}
$.Text1.value = "86.6";
$.index.open();
<Alloy>
<Window layout="vertical">
<TextField top="50" id="Text1" onClick="onClick" width="80%"/>
</Window>
</Alloy>
@milon120203
Copy link
Author

Screenshot 2019-10-23 at 12 08 29 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment