diff --git a/src/widget/downlist/combo.downlist.js b/src/widget/downlist/combo.downlist.js index 80b414f73..b32fab79f 100644 --- a/src/widget/downlist/combo.downlist.js +++ b/src/widget/downlist/combo.downlist.js @@ -83,12 +83,21 @@ BI.DownListCombo = BI.inherit(BI.Widget, { setValue: function (v) { this.popupview.setValue(v); }, + getValue: function () { return this.popupview.getValue(); + }, + + adjustWidth: function () { + this.downlistcombo.adjustWidth(); + }, + + adjustHeight: function () { + this.downlistcombo.adjustHeight(); } }); BI.DownListCombo.EVENT_CHANGE = "EVENT_CHANGE"; BI.DownListCombo.EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE"; BI.DownListCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; -BI.shortcut("bi.down_list_combo", BI.DownListCombo); \ No newline at end of file +BI.shortcut("bi.down_list_combo", BI.DownListCombo); diff --git a/typescript/widget/downlist/combo.downlist.ts b/typescript/widget/downlist/combo.downlist.ts index e587df6d8..6cc88db52 100644 --- a/typescript/widget/downlist/combo.downlist.ts +++ b/typescript/widget/downlist/combo.downlist.ts @@ -5,10 +5,14 @@ export declare class DownListCombo extends Widget { static EVENT_CHANGE: string; static EVENT_SON_VALUE_CHANGE: string; static EVENT_BEFORE_POPUPVIEW: string; - + hideView: () => void; showView: (e?: any) => void; populate: (items?: any) => void; + + adjustWidth: (e?: MouseEvent) => void; + + adjustHeight: (e?: MouseEvent) => void; }