Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5528] MobileWeb: name of the tableViewRow object is 'TableViewRowView' instead of 'TableViewRow'

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-09-07T03:41:17.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.2
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeMisha Vasko
Created2011-07-20T06:54:22.000+0000
Updated2017-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;
	}); 

Comments

  1. Lee Morris 2017-03-03

    Closing ticket.

JSON Source