Last active
October 22, 2019 18:38
-
-
Save milon120203/b0c215f3752c2340a9f9c84680c3dca7 to your computer and use it in GitHub Desktop.
Textfield value property, setting textfield value from js file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onClick() { | |
Ti.API.info('@@@ Setting focus'); | |
alert($.Text1.getValue()); | |
} | |
$.Text1.value = "86.6"; | |
$.index.open(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Alloy> | |
<Window layout="vertical"> | |
<TextField top="50" id="Text1" onClick="onClick" width="80%"/> | |
</Window> | |
</Alloy> |
Author
milon120203
commented
Oct 22, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment