Skip to content

Instantly share code, notes, and snippets.

@viezel
Last active August 29, 2015 13:56
Show Gist options
  • Save viezel/07d4ac387609bba3630d to your computer and use it in GitHub Desktop.
Save viezel/07d4ac387609bba3630d to your computer and use it in GitHub Desktop.
var library = Alloy.Collections.consulants;
$.win.addEventListener("close", function(){
$.destroy();
});
library.fetch();
<Alloy>
<Collection src="consulants" />
<Window id="win">
<ListView id="listView" defaultItemTemplate="template">
<Templates>
<ItemTemplate name="template" height="70dp" class="Row">
<ImageView bindId="img" class="img" />
<Label bindId="name" class="infoHeaderText" />
<Label bindId="phone" class="infoText" />
<Label bindId="email" class="infoText" />
</ItemTemplate>
</Templates>
<ListSection id="consuleListContainer" dataCollection="consulants">
<ListItem itemid="{id}" name:text="{name}" phone:text="{phone}" email:text="{email}" img:image="{image}"></ListItem>
</ListSection>
</ListView>
</Window>
</Alloy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment