|
|
|
@ -23,11 +23,16 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
self.populate(newValue); |
|
|
|
|
}) : o.items; |
|
|
|
|
|
|
|
|
|
var height = BI.isNumeric(o.height) ? (o.height - (o.simple ? 1 : 2)) : o.height; |
|
|
|
|
var width = BI.isNumeric(o.width) ? (o.width - 2) : o.width; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: "bi.combo", |
|
|
|
|
cls: (o.simple ? "bi-border-bottom" : "bi-border") + " bi-focus-shadow", |
|
|
|
|
container: o.container, |
|
|
|
|
adjustLength: 2, |
|
|
|
|
height: height, |
|
|
|
|
width: width, |
|
|
|
|
toggle: false, |
|
|
|
|
ref: function () { |
|
|
|
|
self.combo = this; |
|
|
|
@ -40,7 +45,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
self.trigger = this; |
|
|
|
|
}, |
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height - (o.simple ? 1 : 2), |
|
|
|
|
height: height, |
|
|
|
|
text: o.text, |
|
|
|
|
defaultText: o.defaultText, |
|
|
|
|
value: o.value, |
|
|
|
|