[TIMOB-4531] iOS: Setting 'rightImage' in custom javascript objects for tableview does not work
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | Low | 
| Status | Closed | 
| Resolution | Fixed | 
| Resolution Date | 2011-10-27T15:53:01.000+0000 | 
| Affected Version/s | Release 1.7.0 | 
| Fix Version/s | Sprint 2011-28, Release 1.8.0 | 
| Components | iOS | 
| Labels | n/a | 
| Reporter | Anirudh Nagesh | 
| Assignee | Stephen Tramer | 
| Created | 2011-06-30T10:42:40.000+0000 | 
| Updated | 2011-10-27T15:53:01.000+0000 | 
Description
	'rightImage' for a row cannot be set in a tableview if the row objects are loaded through custom javascript objects. But it works with createTableviewrow().
Step1: Run the code below.
Step2: You will notice that rightimage for the tableview is not set.
Step3: The work around is to set the rightImage using createTableviewrow API.
Titanium.UI.setBackgroundColor('#000');
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});
var localData =[{title: 'An Entry',rightImage :'indicator.png'},
                {title: 'An Entry',rightImage :'indicator.png'}
];
var tableView = Ti.UI.createTableView({
		data:localData,
		backgroundColor:'#fff',
		rowBackgroundColor:'white'
});
win1.add(tableView);
win1.open();
Tested with 1.8.0.v20110819142548 iPhone 4.3.4 iPad2 4.3.2 Motorola Xoom 3.2 Nexus One 2.2.2