Skip to content

Instantly share code, notes, and snippets.

@tonylukasavage
Created February 20, 2013 18:34
Show Gist options
  • Save tonylukasavage/4997849 to your computer and use it in GitHub Desktop.
Save tonylukasavage/4997849 to your computer and use it in GitHub Desktop.
Alloy - global transform function
Alloy.Globals.transformFunction = function(model) {
// code for your transform function
}
<TableView dataCollection="MyModel" dataTransform="Alloy.Globals.transformFunction">
<TableViewRow title="{formatted_date}" />
</TableView>
<TableView dataCollection="MyModel" dataTransform="Alloy.Globals.transformFunction">
<TableViewRow title="{formatted_date}" />
</TableView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment