[TIMOB-5528] MobileWeb: name of the tableViewRow object is 'TableViewRowView' instead of 'TableViewRow'
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-09-07T03:41:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.2 |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Misha Vasko |
Created | 2011-07-20T06:54:22.000+0000 |
Updated | 2017-03-03T22:34:45.000+0000 |
Description
name of the tableViewRow object is 'TableViewRowView' instead of 'TableViewRow'.
Click against tableView. You will see alert with name of the tableViewRowView object. Expected behavior: It should be 'TableViewRow' object.
Titanium.UI.setBackgroundColor('ebf9ff');
var win = Titanium.UI.createWindow({
title:'Fiber Tracker',
backgroundColor:'#ebf9ff'
});
if (Ti.Platform.osname != 'iphone' && Ti.Platform.osname != 'iphone'){
win.height = 480;
win.width = 320;
};
var mainView = Ti.UI.createView ({
width: 320,
center:{x:'50%'},
layout: 'vertical'
})
var logo = Ti.UI.createImageView({
width: 235,
height: 137,
top:0,
left: 42,
image: '/images/logo.png',
});
var selectGenderLabel = Ti.UI.createLabel({
text: 'SELECT GENDER:',
top: 5,
left: 60,
width: 200,
height: 30,
fontFamily: 'Arial',
fontSize: 20,
color: '#8D1F28',
textAlign: 'center'
});
var selectGenderTable = Ti.UI.createTableView({
data: [{title:'Male'},{title:'Female'}],
top: 10,
left: 100,
width: 120,
// height: 60,
// rowHeight:28,
color: '#37526b',
width: 200,
fontSize: 20,
fontFamily: 'Arial',
});
var enterAgeLabel = Ti.UI.createLabel({
});
win.add(mainView);
mainView.add(logo);
mainView.add(selectGenderLabel);
mainView.add(selectGenderTable);
win.open();
selectGenderTable.addEventListener('click',function(e){
alert(e.row);
//alert(e.rowData);
// e.row.hasCheck = true;
});
Closing ticket.