|
|
@ -36153,15 +36153,21 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_showToolTip: function (e, opt) { |
|
|
|
_showToolTip: function (e, opt) { |
|
|
|
opt || (opt = {}); |
|
|
|
opt || (opt = {}); |
|
|
|
var self = this; |
|
|
|
var self = this, o = this.options; |
|
|
|
var type = this.getTipType() || (this.isEnabled() ? "success" : "warning"); |
|
|
|
var type = this.getTipType() || (this.isEnabled() ? "success" : "warning"); |
|
|
|
var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle()); |
|
|
|
var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle()); |
|
|
|
if (BI.isKey(title)) { |
|
|
|
if (BI.isKey(title)) { |
|
|
|
BI.Tooltips.show(e, this.getName(), title, type, this, opt); |
|
|
|
BI.Tooltips.show(e, this.getName(), title, type, this, opt); |
|
|
|
if (opt.action) { |
|
|
|
if (opt.action) { |
|
|
|
BI.Actions.runAction(opt.action, "hover", opt, title); |
|
|
|
BI.Actions.runAction(opt.action, "hover", BI.extend({}, opt, { |
|
|
|
|
|
|
|
title: o.title, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
|
|
|
|
})); |
|
|
|
} |
|
|
|
} |
|
|
|
BI.Actions.runGlobalAction("hover", opt, title); |
|
|
|
BI.Actions.runGlobalAction("hover", BI.extend({}, opt, { |
|
|
|
|
|
|
|
title: o.title, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
|
|
|
|
})); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|