|
|
@ -106,6 +106,28 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_assertPopupView: function () { |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
if (this.popupView == null) { |
|
|
|
|
|
|
|
this.popupView = BI.createWidget(this.options.popup, { |
|
|
|
|
|
|
|
type: "bi.popup_view", |
|
|
|
|
|
|
|
showArrow: o.showArrow, |
|
|
|
|
|
|
|
value: o.value |
|
|
|
|
|
|
|
}, this); |
|
|
|
|
|
|
|
this.popupView.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { |
|
|
|
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
|
|
|
|
self.combo.setValue(self.getValue()); |
|
|
|
|
|
|
|
self.fireEvent(BI.Bubble.EVENT_CHANGE, value, obj); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.popupView.setVisible(false); |
|
|
|
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.Bubble.EVENT_AFTER_INIT); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_hideView: function (e) { |
|
|
|
_hideView: function (e) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
this.fireEvent(BI.Combo.EVENT_BEFORE_HIDEVIEW); |
|
|
|
this.fireEvent(BI.Combo.EVENT_BEFORE_HIDEVIEW); |
|
|
|