[AC-2421] ListView - crashes when using bindId="description"
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-11-20T18:19:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | ListViews, template |
Reporter | Mads Moller |
Assignee | Shak Hossain |
Created | 2013-11-14T11:22:36.000+0000 |
Updated | 2016-03-08T07:41:27.000+0000 |
Description
ListView - crashes when using bindId="description"
When I use the bindId "description" the app crashes. I guess you either map it to the objc description class method or similar restricted predefined key.
Example:
<Alloy>
<Window id="win">
<ListView id="listView" defaultItemTemplate="myCustomTemplat">
<Templates>
<ItemTemplate name="myCustomTemplate">
<Label id="title" bindId="title" />
<Label id="description" bindId="description" />
</ItemTemplate>
</Templates>
<ListSection>
<ListItem title:text="Hello appx" description:text="this is some text"/>
<ListItem title:text="This is a bug" description:text="this is some text 2"/>
</ListSection>
</ListView>
</Window>
</Alloy>
This crashes.
Resolving as invalid, "description" is an internal reserved word.
Hi Pedro, Thats also super nice. But please document it then. I used several hours looking through my app, before figuring this out.
[~penrique] can't we include a constant with these reserved keywords in the SDK and simply check against them in cases like these so we can inform the user instead of just crashing?