-
-
Save viezel/07d4ac387609bba3630d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var library = Alloy.Collections.consulants; | |
$.win.addEventListener("close", function(){ | |
$.destroy(); | |
}); | |
library.fetch(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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