Skip to content

Instantly share code, notes, and snippets.

@etgryphon
Created November 11, 2009 21:45
Show Gist options
  • Save etgryphon/232340 to your computer and use it in GitHub Desktop.
Save etgryphon/232340 to your computer and use it in GitHub Desktop.
// Create this in you view folder for fun
ResortContracts.TestView = SC.View.extend({
createChildViews: function(){
var childViews = [], view;
view = this.createChildView(
SC.SelectButtonView.design({
valueBinding: '.parentView.content.item'
})
);
childViews.push(view);
this.set('childViews', childViews);
}
})
// use this where your item column is
itemColumn: ResortContracts.RateColumnView.design({
layout: { width: 200 },
contentValueKey: 'item',
exampleView: ResortContracts.TestView
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment