|
|
@ -19,8 +19,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, { |
|
|
|
BI.YearMonthInterval.superclass._init.apply(this, arguments); |
|
|
|
BI.YearMonthInterval.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
|
|
|
|
o.value = o.value || {}; |
|
|
|
o.value = o.value || {}; |
|
|
|
this.left = this._createCombo(o.value.start); |
|
|
|
this.left = this._createCombo(o.value.start, o.watermark?.start); |
|
|
|
this.right = this._createCombo(o.value.end); |
|
|
|
this.right = this._createCombo(o.value.end, o.watermark?.end); |
|
|
|
this.label = BI.createWidget({ |
|
|
|
this.label = BI.createWidget({ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
@ -61,7 +61,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createCombo: function (v) { |
|
|
|
_createCombo: function (v, watermark) { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
var combo = BI.createWidget({ |
|
|
|
var combo = BI.createWidget({ |
|
|
|
type: "bi.dynamic_year_month_combo", |
|
|
|
type: "bi.dynamic_year_month_combo", |
|
|
@ -71,6 +71,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, { |
|
|
|
maxDate: o.maxDate, |
|
|
|
maxDate: o.maxDate, |
|
|
|
behaviors: o.behaviors, |
|
|
|
behaviors: o.behaviors, |
|
|
|
value: v, |
|
|
|
value: v, |
|
|
|
|
|
|
|
watermark: watermark, |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: BI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW, |
|
|
|
eventName: BI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|