|
|
@ -15,8 +15,14 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
o.height -= 2; |
|
|
|
|
|
|
|
BI.isNumeric(o.width) && (o.width -= 2); |
|
|
|
BI.isNumeric(o.width) && (o.width -= 2); |
|
|
|
|
|
|
|
BI.isNumeric(o.height) && (o.height -= 2); |
|
|
|
|
|
|
|
o.value = BI.isFunction(o.value) ? this.__watch(o.value, function (context, newValue) { |
|
|
|
|
|
|
|
self.setValue(newValue); |
|
|
|
|
|
|
|
}) : o.value; |
|
|
|
|
|
|
|
o.items = BI.isFunction(o.items) ? this.__watch(o.items, function (context, newValue) { |
|
|
|
|
|
|
|
self.populate(newValue); |
|
|
|
|
|
|
|
}) : o.items; |
|
|
|
BI.IconTextValueCombo.superclass._init.apply(this, arguments); |
|
|
|
BI.IconTextValueCombo.superclass._init.apply(this, arguments); |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
type: "bi.select_icon_text_trigger", |
|
|
|
type: "bi.select_icon_text_trigger", |
|
|
|