Skip to content

Instantly share code, notes, and snippets.

@geoffreyd
Forked from kcarriedo/ImageView
Created July 20, 2010 07:11
Show Gist options
  • Save geoffreyd/482627 to your computer and use it in GitHub Desktop.
Save geoffreyd/482627 to your computer and use it in GitHub Desktop.
//Is this correct?
SC.ImageView.design({
// You don't need to have both a 'right' and a 'width', just one or the other
layout: { top: 100, left: 840, rotate: 90, height: 150, width: 130 },
value: static_url('resources/aly.JPG'),
localize: NO,
mouseDown: function(evt) {
// This will hide the current image when clicked
this.set('isVisible', YES) ;
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment