Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created June 18, 2010 21:21
Show Gist options
  • Save joegaudet/444243 to your computer and use it in GitHub Desktop.
Save joegaudet/444243 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: '.parentView.NewsView' },
{ title: 'Assignments', value: 'DarkHorse.AssignmentsSubView' },
{ title: 'Grades', value: 'DarkHorse.GradesSubView' },
{ title: 'Discussion', value: 'DarkHorse.DiscussionSubView' },
{ title: 'Resources', value: 'DarkHorse.ResourcesSubView' }
],
itemTitleKey: 'title',
itemValueKey: 'value',
value: 'NewsSubView',
NewsView: SC.View.design({
layout: { top: 10, right: 10, bottom: 10, left: 10 },
childViews: 'viewName'.w(),
classNames: ['tabView'],
viewName:SC.LabelView.design({
layout: { top: 0, right: 0, bottom: 0, left: 0 },
value: 'News'
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment