I have created a table view and want that when i click a cell then a new window should appear and my cell data should be displayed in that window!!!!….
here my code goes…
var table1 = Titanium.UI.createTableView(
{
data:[
{title:"Row 1 - simple row"},
{title:"Row 2 - Having child", hasChild:true},
{title:"Row 3 - with Details",hasDetail:true},
{title:"Row 4 - with Check",hasCheck:true},
{title:"Row 5 - red background",backgroundColor:"#f00"}
]
});
table1.addEventListener('click', function(e){
if (e.rowData)
{
var win5 = Titanium.UI.createWindow({
//url:e.rowData.test,
title:e.rowData.title
});
win5.open();
}
})
win1.add(table1);
Hope this helps you.