-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
When build the code below with listview returns the result {{person.name}} instead of Jhon.
When I use on a label outside the listview works. Inside the ListView does not work.
My Controller:
var nano = require("nano");
var $model = {
person: {
name: "Jhon"
}
};
nano($,$model);
$.listview.open();
XML View:
<Alloy>
<Window id="listview">
<ListView>
<Templates>
<ItemTemplate name="default">
<View layout="vertical">
<Label text="{{person.name}}"/>
<Label bindId="label"/>
</View>
</ItemTemplate>
</Templates>
<ListSection>
<ListItem template="default" label:text="Teste 1" />
<ListItem template="default" label:text="{{person.name}}" />
<ListItem template="default" label:text="Teste 3" />
</ListSection>
</ListView>
</Window>
</Alloy>
Metadata
Metadata
Assignees
Labels
No labels