Browse Source

Pull request #2169: CHART-20633 fix: 增加外部监听事件

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit '78e941235c8e3fd4630022abd383806f106429cc':
  CHART-20633 fix: 增加外部监听事件
es6
Claire.Tang 3 years ago
parent
commit
3d4806202e
  1. 4
      src/case/colorchooser/colorchooser.js
  2. 4
      src/case/colorchooser/colorchooser.simple.js

4
src/case/colorchooser/colorchooser.js

@ -73,6 +73,9 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () {
self.fireEvent(BI.ColorChooser.EVENT_CHANGE, arguments);
});
this.combo.on(BI.Combo.EVENT_AFTER_POPUPVIEW, function () {
self.fireEvent(BI.ColorChooser.EVENT_AFTER_POPUPVIEW, arguments);
});
},
_isRGBColor: function (color) {
@ -100,4 +103,5 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
}
});
BI.ColorChooser.EVENT_CHANGE = "EVENT_CHANGE";
BI.ColorChooser.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW";
BI.shortcut("bi.color_chooser", BI.ColorChooser);

4
src/case/colorchooser/colorchooser.simple.js

@ -34,6 +34,9 @@ BI.SimpleColorChooser = BI.inherit(BI.Widget, {
this.combo.on(BI.ColorChooser.EVENT_CHANGE, function () {
self.fireEvent(BI.SimpleColorChooser.EVENT_CHANGE, arguments);
});
this.combo.on(BI.ColorChooser.EVENT_AFTER_POPUPVIEW, function () {
self.fireEvent(BI.SimpleColorChooser.EVENT_AFTER_POPUPVIEW, arguments);
});
},
isViewVisible: function () {
@ -57,4 +60,5 @@ BI.SimpleColorChooser = BI.inherit(BI.Widget, {
}
});
BI.SimpleColorChooser.EVENT_CHANGE = "EVENT_CHANGE";
BI.SimpleColorChooser.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW";
BI.shortcut("bi.simple_color_chooser", BI.SimpleColorChooser);
Loading…
Cancel
Save