Created
September 27, 2014 23:17
-
-
Save addieljuarez/b865b24d1e14121f7de5 to your computer and use it in GitHub Desktop.
sesion 27 septiembre
This file contains hidden or 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
| var ventana = Titanium.UI.createWindow({ | |
| backgroundColor:'green', | |
| top:10, | |
| left:10, | |
| right:10, | |
| bottom:10, | |
| borderRadius:15, | |
| borderColor:'#fff', | |
| borderWidth:3, | |
| }); | |
| var input = Ti.UI.createTextField({ | |
| top:50, | |
| width:200, | |
| height:40, | |
| borderColor:'red', | |
| hintText:'inserta el texto', | |
| passwordMask:true, | |
| }); | |
| var boton = Titanium.UI.createButton({ | |
| top:120, | |
| height:50, | |
| width:'50%', | |
| title:'click', | |
| borderColor:'#000', | |
| }); | |
| boton.addEventListener('click', function(){ | |
| alert(input.value); | |
| }); | |
| ventana.add(input); | |
| ventana.add(boton); | |
| ventana.open(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment