|
|
@ -31,6 +31,7 @@ export class TimeInterval extends Single { |
|
|
|
static EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
static EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
static EVENT_BEFORE_START_POPUPVIEW = "EVENT_BEFORE_START_POPUPVIEW"; |
|
|
|
static EVENT_BEFORE_START_POPUPVIEW = "EVENT_BEFORE_START_POPUPVIEW"; |
|
|
|
static EVENT_BEFORE_END_POPUPVIEW = "EVENT_BEFORE_END_POPUPVIEW"; |
|
|
|
static EVENT_BEFORE_END_POPUPVIEW = "EVENT_BEFORE_END_POPUPVIEW"; |
|
|
|
|
|
|
|
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW"; |
|
|
|
|
|
|
|
|
|
|
|
_defaultConfig() { |
|
|
|
_defaultConfig() { |
|
|
|
const conf = super._defaultConfig(...arguments); |
|
|
|
const conf = super._defaultConfig(...arguments); |
|
|
@ -102,6 +103,14 @@ export class TimeInterval extends Single { |
|
|
|
watermark, |
|
|
|
watermark, |
|
|
|
value: v, |
|
|
|
value: v, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
|
|
|
|
listeners: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
eventName: DynamicDateTimeCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW, |
|
|
|
|
|
|
|
action: () => { |
|
|
|
|
|
|
|
this.fireEvent(TimeInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}); |
|
|
|
}); |
|
|
|
combo.on(DynamicDateTimeCombo.EVENT_ERROR, () => { |
|
|
|
combo.on(DynamicDateTimeCombo.EVENT_ERROR, () => { |
|
|
|
this._clearTitle(); |
|
|
|
this._clearTitle(); |
|
|
|