Skip to content

Instantly share code, notes, and snippets.

@jackhq
Created April 21, 2010 18:39
Show Gist options
  • Save jackhq/374221 to your computer and use it in GitHub Desktop.
Save jackhq/374221 to your computer and use it in GitHub Desktop.
var mainWin = Ti.UI.currentWindow;
var navbar = Titanium.UI.iPhone.createNavigationGroup({
window:mainWin
});
var search = Titanium.UI.createSearchBar({
showCancel:false,
height:40,
width:200,
top:0,
hintText:"Search"
});
mainWin.rightNavButton = search;
var leftTable = Ti.UI.createTableView({
data: [
{title:"John Tron",header:"Patients"},
{title:"Jimmy Paper"},
{title:"Kim Smit"},
{title:"Alan Mixalot"},
{title:"Norman Bates"}
],
backgroundColor:"#eee",
separatorStyle:Ti.UI.iPhone.TableViewSeparatorStyle.NONE,
width:200,
left:0,
allowsSelection:true
});
var leftLine = Ti.UI.createView({
backgroundColor:"#999",
width:1,
left:201
});
var rightView = Ti.UI.createView({
left:202,
right:0
});
var rightbottomTableView = Ti.UI.createTableView({
data: [
{title:'Modal Window',header:'Prescriptions'},
{title:'Modal Window 2',backgroundColor:'#eee'}
],
left:202,
top: 302,
right:0
});
rightView.add(Ti.UI.createLabel({
top:10,
left:100,
width:300,
height:'auto',
color:'#000',
font:{fontSize:24},
text: 'Welcome to RxPad',
backgroundcolor: '#fff'
}));
mainWin.add(leftTable);
mainWin.add(leftLine);
mainWin.add(rightView);
mainWin.add(rightbottomTableView);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment