Guest User

Untitled

a guest
Jul 18th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Dialog.BasalSettingView = SC.View.extend(SC.ContentDisplay,
  2. /** @scope Dialog.BasalSettingView.prototype */ {
  3.  
  4. contentDisplayProperties: 'startTime value'.w(),
  5.  
  6. childViews: 'startTimeView valueTextView'.w(),
  7.  
  8. startTimeView: SC.DateFieldView.design({
  9. layout: {left:10, centerY: 0, height: 24, width: 60 },
  10. showTime: YES,
  11. showDate: NO,
  12. formatTime: "%H:%M",
  13. //formatTimeBinding: "Dialog.accountController.timeFormat",
  14. value: SC.DateTime.create() // How should I bind the value to content('startTime')?
  15. }),
  16.  
  17. valueTextView: SC.TextFieldView.design({
  18. layout: {left: 80, centerY: 0, width: 60, height: 24},
  19. validator: SC.Validator.Number2.create(),
  20. value: 0.45 // How should I bind the value to content('value')?
  21. }),
  22.  
  23. render: function(context, firstTime) {
  24. var content = this.get('content');
  25. if (content != null) {
  26. // ...
  27. }
  28. sc_super();
  29. }
  30.  
  31. });
Add Comment
Please, Sign In to add comment