Skip to content

Instantly share code, notes, and snippets.

@lsiden
Created December 3, 2009 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsiden/248262 to your computer and use it in GitHub Desktop.
Save lsiden/248262 to your computer and use it in GitHub Desktop.
EccapCalc.mainPage = SC.Page.design({
// The main pane is made visible on screen as soon as your app is loaded.
// Add childViews to this pane for views to display immediately on page
// load.
mainPane: SC.MainPane.design({
childViews: 'scrollView'.w(),
scrollView: SC.ScrollView.design({
contentView: SC.View.design({
childViews: 'labelView assetsView incomeView expensesView'.w(),
labelView: SC.LabelView.design({
layout: { left: 100, top: 0, height: 50},
displayValue: 'Personal',
//fontWeight: SC.BOLD_WEIGHT,
tagName: 'h1',
}),
assetsView: EccapCalc.LedgerView(100, 100, 'EccapCalc.assetsLedgerController'),
incomeView: EccapCalc.LedgerView(100, 350, 'EccapCalc.incomeLedgerController'),
expensesView: EccapCalc.LedgerView(100, 600, 'EccapCalc.expensesLedgerController'),
}),
}),
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment