Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13058] CLI: detect control types in ListView templates

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-03-21T21:51:25.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 06 JS, 2013 Sprint 06
ComponentsCLI
Labelslistview, qe-devCheck
ReporterMax Stepanov
AssigneeBryan Hughes
Created2013-03-14T01:48:25.000+0000
Updated2013-04-02T01:17:17.000+0000

Description

Current built process does not detect use of certain controls referenced in templates, e.g Ti.UI.Switch control below. As a result, these cannot be found at runtime.
	var template = {
		properties: {
		},
		childTemplates: [
		{
			type: 'Ti.UI.Label',
			bindId: 'bindLabel',
			properties: {
				color: 'red',
				font: { fontFamily:'Arial', fontSize: 13, fontWeight:'bold' },
				left: 10,
				width: 200, height: 30
			},
		},
		{
			type: 'Ti.UI.Switch',
			bindId: 'bindSwitch',
			properties: {
				value: false,
				right: 10,
				height: 40
			},
			events: {
			}
		}
		]
	};

Comments

  1. Max Stepanov 2013-03-20

    Quick workaround:
       #ifdef USE_TI_UILISTVIEW
       #define USE_TI_UILABEL
       #define USE_TI_UIBUTTON
       #define USE_TI_UIPROGRESSBAR
       #define USE_TI_UIACTIVITYINDICATOR
       #define USE_TI_UISWITCH
       #define USE_TI_UISLIDER
       #define USE_TI_UITEXTFIELD
       #define USE_TI_UITEXTAREA
       #endif
       
  2. Bryan Hughes 2013-03-21

    PR: https://github.com/appcelerator/titanium_mobile/pull/4005
  3. Sabil Rahim 2013-04-02

    Tested on build : 8cbb9a6(githash) 3.1.0.v20130401144848 on Mac OSX 10.8 on Xcode 4.6

JSON Source