|
|
@ -202,11 +202,14 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getSyncConfig: function () { |
|
|
|
_getSyncConfig: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options, self = this; |
|
|
|
var baseConfig = this._getBaseConfig(); |
|
|
|
var baseConfig = this._getBaseConfig(); |
|
|
|
return BI.extend(baseConfig, o.allowEdit ? this._getSearchConfig() : { |
|
|
|
return BI.extend(baseConfig, o.allowEdit ? this._getSearchConfig() : { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.single_tree_trigger", |
|
|
|
type: "bi.single_tree_trigger", |
|
|
|
|
|
|
|
ref: function(_ref) { |
|
|
|
|
|
|
|
self.textTrigger = _ref; |
|
|
|
|
|
|
|
}, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
@ -220,6 +223,10 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
return BI.extend(config, this._getSearchConfig()); |
|
|
|
return BI.extend(config, this._getSearchConfig()); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getSearcher: function () { |
|
|
|
|
|
|
|
return this.trigger ? this.trigger.getSearcher() : this.textTrigger; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
this.combo.setValue(v); |
|
|
|
this.combo.setValue(v); |
|
|
|