Skip to content

Instantly share code, notes, and snippets.

@enyo
Created March 12, 2010 19:51
Show Gist options
  • Save enyo/330709 to your computer and use it in GitHub Desktop.
Save enyo/330709 to your computer and use it in GitHub Desktop.
components: SC.ScrollView.design({
layout: { top: 20, bottom: 10, left: 10, right: 10 },
contentView: SC.ListView.design({
content: [
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
{ name: 'test3' }
],
rowHeight: 40,
exampleView: SC.View.design({
layout: { height: 40 },
childViews: [SC.LabelView.design({
layout: { centerY: 0, centerX: 0, height: 40, left: 0, right: 0 },
textAlign: SC.ALIGN_CENTER,
controlSize: SC.LARGE_CONTROL_SIZE,
valueBinding: '.parentView.content.name'
})]
})
})
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment