|
|
|
@ -23,8 +23,8 @@ BI.YearQuarterInterval = BI.inherit(BI.Single, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
o.value = o.value || {}; |
|
|
|
|
this.left = this._createCombo(o.value.start); |
|
|
|
|
this.right = this._createCombo(o.value.end); |
|
|
|
|
this.left = this._createCombo(o.value.start, o.watermark?.start); |
|
|
|
|
this.right = this._createCombo(o.value.end, o.watermark?.end); |
|
|
|
|
|
|
|
|
|
return [{ |
|
|
|
|
type: "bi.center", |
|
|
|
@ -63,7 +63,7 @@ BI.YearQuarterInterval = BI.inherit(BI.Single, {
|
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_createCombo: function (v) { |
|
|
|
|
_createCombo: function (v, watermark) { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
var combo = BI.createWidget({ |
|
|
|
|
type: "bi.dynamic_year_quarter_combo", |
|
|
|
@ -73,6 +73,7 @@ BI.YearQuarterInterval = BI.inherit(BI.Single, {
|
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
value: v, |
|
|
|
|
height: o.height, |
|
|
|
|
watermark: watermark, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.DynamicYearQuarterCombo.EVENT_BEFORE_POPUPVIEW, |
|
|
|
|
action: function () { |
|
|
|
@ -204,4 +205,4 @@ BI.YearQuarterInterval.EVENT_VALID = "EVENT_VALID";
|
|
|
|
|
BI.YearQuarterInterval.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
|
BI.YearQuarterInterval.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.YearQuarterInterval.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
|
BI.shortcut("bi.year_quarter_interval", BI.YearQuarterInterval); |
|
|
|
|
BI.shortcut("bi.year_quarter_interval", BI.YearQuarterInterval); |
|
|
|
|