Guest User

Untitled

a guest
Jan 24th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. Pq.loginPage = SC.Page.design({
  2. mainPane: SC.MainPane.design({
  3. defaultResponder: 'Pq.Statechart',
  4. childViews: 'form'.w(),
  5.  
  6. form: SC.View.design({
  7. layout: { width: 200, height: 160, centerX: 0, centerY: 0 },
  8. childViews: 'header userName password loginButton'.w(),
  9.  
  10. header: SC.LabelView.design({
  11. layout: { width: 200, height: 24, top: 0, centerX: 0 },
  12. controlSize: SC.LARGE_CONTROL_SIZE,
  13. value: 'Авторизация',
  14. textAlign: SC.ALIGN_CENTER
  15. }),
  16.  
  17. userName: SC.TextFieldView.design({
  18. layout: { width: 150, height: 30, top: 30, centerX: 0},
  19. hint: 'Логин',
  20. valueBinding: 'Pq.loginController.userName'
  21. }),
  22.  
  23. password: SC.TextFieldView.design({
  24. layout: { width: 150, height: 30, top: 80, centerX: 0 },
  25. hint: 'Пароль',
  26. isPassword: YES,
  27. valueBinding: 'Pq.loginController.password'
  28. }),
  29.  
  30. loginButton: SC.ButtonView.design({
  31. layout: { width: 100, height: 30, top: 120, centerX: 0 },
  32. conrolSize: SC.HUGE_CONTROL_SIZE,
  33. title: 'Войти',
  34. action: 'authenticate'
  35. })
  36. })
  37. })
  38. });
Add Comment
Please, Sign In to add comment