Browse Source

Pull request #3381: JSY-25995 feat: TextValueCombo 支持 EVENT_BEFORE_POPUPVIEW 事件监听

Merge in VISUAL/fineui from ~RENZO.RUAN/a-fineui-r:master to master

* commit 'eabdc4aafa4a3292adcd5ae68831427ef16507dc':
  JSY-25995 feat: TextValueCombo 支持 EVENT_BEFORE_POPUPVIEW 事件监听
research/test
Renzo.Ruan-阮宗伟 1 year ago
parent
commit
6530b16574
  1. 2
      src/case/combo/textvaluecombo/combo.textvalue.js
  2. 1
      typescript/case/combo/combo.textvalue.ts

2
src/case/combo/textvaluecombo/combo.textvalue.js

@ -130,6 +130,7 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW,
action: () => {
changeTag = false;
this.fireEvent(BI.TextValueCombo.EVENT_BEFORE_POPUPVIEW);
}
}, {
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -209,5 +210,6 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
this.combo.populate(items);
}
});
BI.TextValueCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.TextValueCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_value_combo", BI.TextValueCombo);

1
typescript/case/combo/combo.textvalue.ts

@ -4,6 +4,7 @@ export declare class TextValueCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
clear(): void;
setText(text: string): void;

Loading…
Cancel
Save