Skip to content

Instantly share code, notes, and snippets.

@fortuity
Created July 9, 2009 18:37
Show Gist options
  • Save fortuity/143878 to your computer and use it in GitHub Desktop.
Save fortuity/143878 to your computer and use it in GitHub Desktop.
// ==========================================================================
// Project: Timehack - mainPage
// Copyright: ©2009 My Company, Inc.
// ==========================================================================
/*globals Timehack */
Timehack.mainPage = SC.Page.design({
mainPane: SC.MainPane.design({
childViews: [SC.TabView.design({
nowShowing: 'forecast',
value: 'forecast',
items: [
{ title: "Forecast", value: "forecast" },
{ title: "Calendar", value: "Timehack.calendarPage.mainView" },
{ title: "Forum", value: "Timehack.forumPage.mainView" },
{ title: "Journal", value: "Timehack.journalPage.mainView" }
],
itemTitleKey: 'title',
itemValueKey: 'value',
layout: { left:12, right:12, top:12, bottom:12 },
userDefaultKey: "mainPane"
})]
}),
forecast: SC.ScrollView.design({
hasHorizontalScroller: NO,
layout: { top: 42, bottom: 42, left: 0, right: 0 },
backgroundColor: 'white',
contentView: SC.ListView.design({
contentBinding: 'Timehack.vocsController.arrangedObjects',
selectionBinding: 'Timehack.vocsController.selection',
contentValueKey: "event"
})
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment