|
|
|
@ -53548,7 +53548,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value |
|
|
|
|
value: o.value, |
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
|
}); |
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.text_value_combo_popup", |
|
|
|
@ -53587,8 +53588,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
return BI.contains(v, item.value); |
|
|
|
|
}); |
|
|
|
|
if (BI.isNull(result)) { |
|
|
|
|
this.trigger.setTipType("warning"); |
|
|
|
|
this.element.removeClass("combo-error").addClass("combo-error"); |
|
|
|
|
} else { |
|
|
|
|
this.trigger.setTipType("success"); |
|
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -53611,7 +53614,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.TextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.shortcut("bi.text_value_combo", BI.TextValueCombo);/** |
|
|
|
|
BI.shortcut("bi.text_value_combo", BI.TextValueCombo); |
|
|
|
|
/** |
|
|
|
|
* @class BI.SmallTextValueCombo |
|
|
|
|
* @extend BI.Widget |
|
|
|
|
* combo : text + icon, popup : text |
|
|
|
@ -57892,6 +57896,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
title: function () { |
|
|
|
|
return self.text.getText(); |
|
|
|
|
}, |
|
|
|
|
tipType: o.tipType, |
|
|
|
|
warningTitle: o.warningTitle, |
|
|
|
|
hgap: c.hgap, |
|
|
|
|
readonly: o.readonly |
|
|
|
|
}); |
|
|
|
@ -57916,9 +57922,14 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
|
|
|
|
|
setText: function (text) { |
|
|
|
|
this.text.setText(text); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
this.text.options.tipType = v; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.shortcut("bi.text_trigger", BI.TextTrigger);/** |
|
|
|
|
BI.shortcut("bi.text_trigger", BI.TextTrigger); |
|
|
|
|
/** |
|
|
|
|
* 选择字段trigger |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/15. |
|
|
|
@ -57943,7 +57954,9 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
element: this, |
|
|
|
|
height: o.height, |
|
|
|
|
readonly: o.readonly, |
|
|
|
|
text: this._digest(o.value, o.items) |
|
|
|
|
text: this._digest(o.value, o.items), |
|
|
|
|
tipType: o.tipType, |
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -57969,11 +57982,16 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
this.trigger.setText(this._digest(vals, this.options.items)); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
this.trigger.setTipType(v); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
this.options.items = items; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);/** |
|
|
|
|
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger); |
|
|
|
|
/** |
|
|
|
|
* 选择字段trigger小一号的 |
|
|
|
|
* |
|
|
|
|
* @class BI.SmallSelectTextTrigger |
|
|
|
|