|
|
@ -45902,6 +45902,7 @@ BI.Label = BI.inherit(BI.Single, { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.text", |
|
|
|
type: "bi.text", |
|
|
|
|
|
|
|
textAlign: o.textAlign, |
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
lineHeight: o.textHeight, |
|
|
|
lineHeight: o.textHeight, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
@ -53288,7 +53289,7 @@ BI.shortcut("bi.bubble_bar_popup_view", BI.BubblePopupBarView); |
|
|
|
* @class BI.TextBubblePopupBarView |
|
|
|
* @class BI.TextBubblePopupBarView |
|
|
|
* @extends BI.BubblePopupView |
|
|
|
* @extends BI.BubblePopupView |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
BI.TextBubblePopupBarView = BI.inherit(BI.Widget, { |
|
|
|
BI.TextBubblePopupBarView = BI.inherit(BI.BubblePopupView, { |
|
|
|
|
|
|
|
|
|
|
|
props: function () { |
|
|
|
props: function () { |
|
|
|
return { |
|
|
|
return { |
|
|
@ -53326,16 +53327,60 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, { |
|
|
|
self.popup = this; |
|
|
|
self.popup = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
buttons: buttons |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_createToolBar: function () { |
|
|
|
|
|
|
|
var o = this.options, self = this; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var items = []; |
|
|
|
|
|
|
|
BI.each(o.buttons, function (i, buttonOpt) { |
|
|
|
|
|
|
|
if (BI.isWidget(buttonOpt)) { |
|
|
|
|
|
|
|
items.push(buttonOpt); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
items.push(BI.extend({ |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
height: 24, |
|
|
|
|
|
|
|
handler: function (v) { |
|
|
|
|
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, v); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, buttonOpt)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.center", |
|
|
|
|
|
|
|
height: 44, |
|
|
|
|
|
|
|
rgap: 15, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.right_vertical_adapt", |
|
|
|
|
|
|
|
lgap: 10, |
|
|
|
|
|
|
|
items: items |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_createView: function () { |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var button = BI.createWidget({ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
cls: "bar-popup-container", |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
whiteSpace: "normal", |
|
|
|
whiteSpace: "normal", |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.text = this; |
|
|
|
self.text = this; |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
buttons: buttons |
|
|
|
hgap: 15, |
|
|
|
}; |
|
|
|
tgap: 10 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
button.element.css("min-height", o.minHeight - 44); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return button; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (v) { |
|
|
|
populate: function (v) { |
|
|
|