Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MyApp.mainPage = SC.Page.design({
- mainPane: SC.MainPane.design({
- settingsMenuPicker: SC.MenuPane.create({
- layout: { width: 200 },
- items: [
- { title: "_MenuAccountSettings".loc(), keyEquivalent: 'ctrl_a', target: 'MyApp.registerAccountController', action: 'beginEdit' },
- { title: "_MenuProfileSettings".loc(), keyEquivalent: 'ctrl_p', target: 'MyApp.registerPersonController', action: 'beginEdit' },
- { title: "_MenuNewProfile".loc(), keyEquivalent: 'ctrl_n', target: 'MyApp.registerPersonController', action: 'newPerson' },
- { title: "_MenuLogout".loc(), keyEquivalent: 'ctrl_o', target: 'MyApp.appController', action: 'logout' }
- ]
- }),
- childViews: 'registerButton'.w(),
- settingsButton: SC.ButtonView.design({
- layout: {centerY: 0, right: 210, width: 20, height: 20 },
- icon: 'imgGear',
- renderStyle: 'renderImage',
- theme: '',
- action: "showPickerForSettings",
- targetBinding: "Dialog.appController",
- toolTip: "_ToolbarSettingsTooltip".loc()
- }),
- ....
Add Comment
Please, Sign In to add comment