Slide 27
Slide 27 text
User Interface
mainPane: SC.MainPane.design({
childViews: 'topView middleView bottomView'.w(),
topView: SC.ToolbarView.design({
layout: { top: 0, left: 0, right: 0, height: 36 },
anchorLocation: SC.ANCHOR_TOP,
childViews: 'labelView addButton'.w(),
labelView: SC.LabelView.design({
layout: { centerY: 0, height: 24, left: 8, width: 200 },
controlSize: SC.LARGE_CONTROL_SIZE,
fontWeight: SC.BOLD_WEIGHT,
value: 'Todos'
}),
addButton: SC.ButtonView.design({
layout: { centerY: 0, height: 24, right: 12, width: 100 },
title: "Add Task",
target: "Todos.tasksController",
action: "addTask"
})
}),
Monday, September 26, 11
Inside of that mainPane, we have 3 childViews to break up the sections: the top, the middle
and the bottom.