Skip to content

Instantly share code, notes, and snippets.

@grantges
Created November 20, 2020 14:26
Show Gist options
  • Save grantges/39155f812fdc7fb224a602a8bcc04380 to your computer and use it in GitHub Desktop.
Save grantges/39155f812fdc7fb224a602a8bcc04380 to your computer and use it in GitHub Desktop.
Alloy.Collections.flights = Alloy.createCollection('flight');
function _constructor(args) {
Alloy.Collections.flights.fetch();
})($.args);
function _onClickRow(e){
alert('Do Something');
}
function _onClose(e) {
$.destroy();
}
<Alloy>
<Window class="container" title="L('feed-title', 'Pilot Feed')" onClose="_onClose">
<TableView dataCollection="flights">
<TableViewRow flightId="{id}" title="{name}" subtitle="{date}" onClick="_onClickRow" hasChild="true" />
</TableView>
</Window>
</Alloy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment