|
|
|
@ -14,7 +14,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
value: "", |
|
|
|
|
defaultText: "", |
|
|
|
|
allowClear: false, |
|
|
|
|
status: "success", // success | warning | error
|
|
|
|
|
status: "success", // success | warning | error,
|
|
|
|
|
title: null, |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -35,15 +36,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
const o = this.options; |
|
|
|
|
|
|
|
|
|
const trigger = { |
|
|
|
|
type: "bi.select_text_trigger", |
|
|
|
|
ref: ref => this.trigger = ref, |
|
|
|
|
cls: "text-value-trigger", |
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
title: () => { |
|
|
|
|
const title = () => { |
|
|
|
|
if (BI.isFunction(o.title)) { |
|
|
|
|
return o.title(); |
|
|
|
|
} |
|
|
|
|
if (this.options.status === "error") { |
|
|
|
|
return { |
|
|
|
|
level: "warning", |
|
|
|
@ -53,7 +49,17 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
return { |
|
|
|
|
level: "success", |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const trigger = { |
|
|
|
|
type: "bi.select_text_trigger", |
|
|
|
|
ref: ref => this.trigger = ref, |
|
|
|
|
cls: "text-value-trigger", |
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
title, |
|
|
|
|
allowClear: o.allowClear, |
|
|
|
|
defaultText: o.defaultText, |
|
|
|
|
listeners: [ |
|
|
|
|