Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. MyApp.mainPage = SC.Page.design({
  2.  
  3. mainPane: SC.MainPane.design({
  4. settingsMenuPicker: SC.MenuPane.create({
  5. layout: { width: 200 },
  6. items: [
  7. { title: "_MenuAccountSettings".loc(), keyEquivalent: 'ctrl_a', target: 'MyApp.registerAccountController', action: 'beginEdit' },
  8. { title: "_MenuProfileSettings".loc(), keyEquivalent: 'ctrl_p', target: 'MyApp.registerPersonController', action: 'beginEdit' },
  9. { title: "_MenuNewProfile".loc(), keyEquivalent: 'ctrl_n', target: 'MyApp.registerPersonController', action: 'newPerson' },
  10. { title: "_MenuLogout".loc(), keyEquivalent: 'ctrl_o', target: 'MyApp.appController', action: 'logout' }
  11. ]
  12. }),
  13.  
  14. childViews: 'registerButton'.w(),
  15.  
  16. settingsButton: SC.ButtonView.design({
  17. layout: {centerY: 0, right: 210, width: 20, height: 20 },
  18. icon: 'imgGear',
  19. renderStyle: 'renderImage',
  20. theme: '',
  21. action: "showPickerForSettings",
  22. targetBinding: "Dialog.appController",
  23. toolTip: "_ToolbarSettingsTooltip".loc()
  24. }),
  25. ....
Add Comment
Please, Sign In to add comment