diff --git a/src/base/1.pane.js b/src/base/1.pane.js index 3a49513f1..f37cd9f7a 100644 --- a/src/base/1.pane.js +++ b/src/base/1.pane.js @@ -138,6 +138,11 @@ BI.Pane = BI.inherit(BI.Widget, { } }, + setTipText: function (text) { + this._assertTip(); + this._tipText.setText(text); + }, + populate: function (items) { this.options.items = items || []; this.check(); diff --git a/src/case/layer/pane.list.js b/src/case/layer/pane.list.js index 1b6530355..9cad462cf 100644 --- a/src/case/layer/pane.list.js +++ b/src/case/layer/pane.list.js @@ -122,6 +122,9 @@ BI.ListPane = BI.inherit(BI.Pane, { return; } BI.ListPane.superclass.populate.apply(this, arguments); + var context = BI.get(arguments, [2], {}); + var tipText = context.tipText || ''; + BI.isNotEmptyString(tipText) && this.setTipText(tipText); this.button_group.populate.apply(this.button_group, arguments); }, diff --git a/src/widget/multiselect/search/multiselect.search.loader.js b/src/widget/multiselect/search/multiselect.search.loader.js index c32bbc0a3..dc2cf5d06 100644 --- a/src/widget/multiselect/search/multiselect.search.loader.js +++ b/src/widget/multiselect/search/multiselect.search.loader.js @@ -68,7 +68,10 @@ BI.MultiSelectSearchLoader = BI.inherit(BI.Widget, { var json = self._filterValues(self.storeValue); firstItems = self._createItems(json); } - callback(firstItems.concat(self._createItems(ob.items)), keyword); + var context = { + tipText: ob.tipText, + }; + callback(firstItems.concat(self._createItems(ob.items)), keyword, context); if (op.times === 1 && self.storeValue) { self.setValue(self.storeValue); } diff --git a/src/widget/singleselect/search/singleselect.search.loader.js b/src/widget/singleselect/search/singleselect.search.loader.js index d1f3b9b73..68a953124 100644 --- a/src/widget/singleselect/search/singleselect.search.loader.js +++ b/src/widget/singleselect/search/singleselect.search.loader.js @@ -64,7 +64,10 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, { var json = self._filterValues(self.storeValue); firstItems = self._createItems(json); } - callback(firstItems.concat(self._createItems(ob.items)), keyword || ""); + var context = { + tipText: ob.tipText, + }; + callback(firstItems.concat(self._createItems(ob.items)), keyword || "", context); if (op.times === 1 && self.storeValue) { self.setValue(self.storeValue); }