Skip to content

Instantly share code, notes, and snippets.

@tonylukasavage
Created August 13, 2012 19:26
Show Gist options
  • Save tonylukasavage/3343471 to your computer and use it in GitHub Desktop.
Save tonylukasavage/3343471 to your computer and use it in GitHub Desktop.
Alloy <Require>
function onReady(args) {
$.theView.myImage.image = "/someImage.png";
}
module.exports = Alloy.getController('BaseController').extend({
onReady: onReady
});
<Alloy>
<Window>
<Require type="view" src="requireView" id="theView"/>
<!-- <Require src="requireView"/> -->
<Require type="widget" src="com.appc.someWidget" id="theWidget"/>
</Window>
</Alloy>
<Alloy>
<View>
<ImageView id="myImage"/>
</View>
</Alloy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment