Guest User

Untitled

a guest
Jul 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Todos.mainPage = SC.Page.design({
  2.  
  3. mainPane: SC.MainPane.design({
  4. childViews: 'middleView bottomView'.w(),
  5.  
  6. middleView: SC.ScrollView.design({
  7. hasHorizontalScroller: NO,
  8. layout: { top: 36, bottom: 32, left: 0, right: 0 },
  9. backgroundColor: 'white',
  10. childViews: 'contentView'.w(),
  11.  
  12. contentView: SC.ListView.design({
  13. contentBinding: 'Todos.tasksController.arrangedObjects',
  14. contentValueKey: 'description',
  15. contentCheckboxKey: 'isDone'
  16. })
  17. }),
  18.  
  19. bottomView: SC.ToolbarView.design({
  20. childViews: 'summaryView'.w(),
  21.  
  22. summaryView: SC.LabelView.design({
  23. valueBinding: 'Todos.tasksController.countSummary' //ADDED THIS
  24. })
  25. })
  26. })
  27. });
Add Comment
Please, Sign In to add comment