Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6195] Labels not included when creating TableView rows

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Do
Resolution Date2020-01-09T19:31:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsmobileweb,
ReporterTony Lukasavage
AssigneeChris Barber
Created2011-11-15T12:16:09.000+0000
Updated2020-01-09T19:31:09.000+0000

Description

When attempting to create a table view, unless you call createLabel() somewhere in your code, you'll get an error that Ti.UI.Label is not a constructor. This is with the mobile web sdk 1.7.2 beta 1 available on the wiki: http://wiki.appcelerator.org/display/guides/Mobile+Web
var win = Ti.UI.createWindow();
Ti.UI.backgroundColor = '#800';
//var label = Ti.UI.createLabel({
//	text: 'hi there'
//});
var tv = Ti.UI.createTableView({
	rowHeight: 60,
	data: [
		{ title: 'sdfsfsd' },
		{ title: 'sdflsdhfksjhfkjshfkj' }
	]	
});
win.add(tv);
win.open();
Uncommenting the label code above causes the app to work just fine.

Comments

  1. Alan Hutton 2020-01-09

    It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. If community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.

JSON Source