Skip to content

Instantly share code, notes, and snippets.

@charlesjolley
Forked from hvgotcodes/gist:598275
Created September 26, 2010 20:09
Show Gist options
  • Save charlesjolley/598280 to your computer and use it in GitHub Desktop.
Save charlesjolley/598280 to your computer and use it in GitHub Desktop.
childViews: ['labelView', 'hintView'],
labelView: SC.LabelView.design({
valueBinding: '.parentView*content.value',
isEditable: '.parentView*content.given',
// NOTE: all methods should normally be in a subclass, not in the design
click: function(evt) {
return this.touchStart(evt);
},
// ....
}),
hintView: App.AvailableView.design({
layout: {top: 0, left: 0, right: 0, bottom: 0},
backgroundColor: 'green',
contentBinding: '.parentView.content',
hintsBinding: '.parentView*content.hints'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment