Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created July 9, 2010 21:40
Show Gist options
  • Save joegaudet/470105 to your computer and use it in GitHub Desktop.
Save joegaudet/470105 to your computer and use it in GitHub Desktop.
commentControl: SC.View.design({
useStaticLayout: YES,
classNames: 'static'.w(),
childViews: "content".w(),
layout: {left: 289, width:320},
init: function(){
sc_super();
this.set('commentButton',this.createChildView(this.get('commentButton')));
},
content: SC.TextFieldView.design({
classNames: 'static commentBox'.w(),
layout: {height:100},
useStaticLayout: YES,
isPassword: YES,
isTextArea: YES,
hint: 'leave a comment...',
}),
commentButton: SC.ButtonView.design(DarkHorse.FadeBuilder,{
layout: {left:200},
useStaticLayout: YES,
fadeSpeed: 0.3,
classNames: 'static commentButton'.w(),
title: 'Comment',
action: 'myMethod',
target: 'MyApp.Controller'
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment