Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created June 14, 2010 22:55
Show Gist options
  • Save joegaudet/438444 to your computer and use it in GitHub Desktop.
Save joegaudet/438444 to your computer and use it in GitHub Desktop.
contentView: SC.TabView.design({
layout: {
top: 10,
right: 10,
bottom: 10,
left: 10
},
items: [
{ title: 'News', value: 'news' },
{ title: 'Assignments', value: 'DarkHorse.CourseView.AssignmentsView' },
{ title: 'Grades', value: 'grades' },
{ title: 'Discussion', value: 'discuss' },
{ title: 'Resources', value: 'resources' }
],
itemTitleKey: 'title',
itemValueKey: 'value',
value: 'news'
}),
AssignmentsView: SC.View.design({
layout: { top: 0, right: 0, bottom: 0, left: 0 },
childViews: 'viewName'.w(),
backgroundColor: 'red'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment