[TIMOB-13058] CLI: detect control types in ListView templates
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-21T21:51:25.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 06 JS, 2013 Sprint 06 |
Components | CLI |
Labels | listview, qe-devCheck |
Reporter | Max Stepanov |
Assignee | Bryan Hughes |
Created | 2013-03-14T01:48:25.000+0000 |
Updated | 2013-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: {
}
}
]
};
Quick workaround:
PR: https://github.com/appcelerator/titanium_mobile/pull/4005
Tested on build : 8cbb9a6(githash) 3.1.0.v20130401144848 on Mac OSX 10.8 on Xcode 4.6