|
|
|
@ -10,6 +10,23 @@ BI.Label = BI.inherit(BI.AbstractLabel, {
|
|
|
|
|
keyword: "", |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getTitle: function () { |
|
|
|
|
var title = this.options.title; |
|
|
|
|
var text = this.options.text; |
|
|
|
|
if (BI.isFunction(title)) { |
|
|
|
|
return title(); |
|
|
|
|
} |
|
|
|
|
if (BI.isNotNull(title)) { |
|
|
|
|
return title; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (BI.isFunction(text)) { |
|
|
|
|
return text(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return text; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
|
this.text.doRedMark.apply(this.text, arguments); |
|
|
|
|
}, |
|
|
|
|