Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dialog.BasalSettingView = SC.View.extend(SC.ContentDisplay,
- /** @scope Dialog.BasalSettingView.prototype */ {
- contentDisplayProperties: 'startTime value'.w(),
- childViews: 'startTimeView valueTextView'.w(),
- startTimeView: SC.DateFieldView.design({
- layout: {left:10, centerY: 0, height: 24, width: 60 },
- showTime: YES,
- showDate: NO,
- formatTime: "%H:%M",
- //formatTimeBinding: "Dialog.accountController.timeFormat",
- value: SC.DateTime.create() // How should I bind the value to content('startTime')?
- }),
- valueTextView: SC.TextFieldView.design({
- layout: {left: 80, centerY: 0, width: 60, height: 24},
- validator: SC.Validator.Number2.create(),
- value: 0.45 // How should I bind the value to content('value')?
- }),
- render: function(context, firstTime) {
- var content = this.get('content');
- if (content != null) {
- // ...
- }
- sc_super();
- }
- });
Add Comment
Please, Sign In to add comment