Skip to content

Instantly share code, notes, and snippets.

@addieljuarez
Created September 27, 2014 23:17
Show Gist options
  • Select an option

  • Save addieljuarez/b865b24d1e14121f7de5 to your computer and use it in GitHub Desktop.

Select an option

Save addieljuarez/b865b24d1e14121f7de5 to your computer and use it in GitHub Desktop.
sesion 27 septiembre
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