Guest User

Untitled

a guest
Jul 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. contentView: OI.MailboxSourceView.design({
  2. layerId: 'mailbox-list',
  3. classNames: 'mailbox-list'.w(),
  4. // delegate: 'OI*mailboxesController',
  5. contentValueKey: 'name',
  6. contentUnreadCountKey: 'unreadCount',
  7. contentBinding: 'OI*mailboxesController.arrangedObjects',
  8. selectionBinding: 'OI*mailboxesController.selection',
  9. selectOnMouseDown: YES,
  10. acceptsFirstResponder: YES,
  11. delegate: OI,
  12. didBecomeFirstResponder: function() {
  13. OI.didBecomeFirstResponder(this) ;
  14. },
  15. willLoseFirstResponder: function() {
  16. OI.willLoseFirstResponder(this) ;
  17. },
  18. moveLeft: function(sender, evt) {
  19. return OI.moveLeft(sender, evt) ;
  20. },
  21. moveRight: function(sender, evt) {
  22. return OI.moveRight(sender, evt) ;
  23. },
  24. exampleView: SC.ListItemView.design({
  25. layoutStyle: function() {
  26. var layout = this.layout ;
  27. var oldHeight = layout.height ;
  28. layout.height = oldHeight - 2 ;
  29. var res = sc_super() ;
  30. layout.height = oldHeight ;
  31. return res ;
  32. }.property().cacheable()
  33. })
  34. })
  35. }),
Add Comment
Please, Sign In to add comment