Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4531] iOS: Setting 'rightImage' in custom javascript objects for tableview does not work

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-10-27T15:53:01.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-28, Release 1.8.0
ComponentsiOS
Labelsn/a
ReporterAnirudh Nagesh
AssigneeStephen Tramer
Created2011-06-30T10:42:40.000+0000
Updated2011-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();

Comments

  1. Natalie Huynh 2011-08-25

    Tested with 1.8.0.v20110819142548 iPhone 4.3.4 iPad2 4.3.2 Motorola Xoom 3.2 Nexus One 2.2.2

JSON Source