|
|
@ -52494,7 +52494,10 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
extraCls: "bi-bubble-bar-popup-view", |
|
|
|
extraCls: "bi-bubble-bar-popup-view", |
|
|
|
buttons: [{value: BI.i18nText("BI-Basic_Cancel"), ghost: true}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}] |
|
|
|
buttons: [{ |
|
|
|
|
|
|
|
value: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
|
|
|
|
ghost: true |
|
|
|
|
|
|
|
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -52505,9 +52508,9 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, { |
|
|
|
|
|
|
|
|
|
|
|
var items = []; |
|
|
|
var items = []; |
|
|
|
BI.each(o.buttons, function (i, buttonOpt) { |
|
|
|
BI.each(o.buttons, function (i, buttonOpt) { |
|
|
|
if(BI.isWidget(buttonOpt)) { |
|
|
|
if (BI.isWidget(buttonOpt)) { |
|
|
|
items.push(buttonOpt); |
|
|
|
items.push(buttonOpt); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
items.push(BI.extend({ |
|
|
|
items.push(BI.extend({ |
|
|
|
type: "bi.button", |
|
|
|
type: "bi.button", |
|
|
|
height: 30, |
|
|
|
height: 30, |
|
|
@ -52537,14 +52540,37 @@ BI.shortcut("bi.bubble_bar_popup_view", BI.BubblePopupBarView); |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
BI.TextBubblePopupBarView = BI.inherit(BI.Widget, { |
|
|
|
BI.TextBubblePopupBarView = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
props: function () { |
|
|
|
baseCls: "bi-text-bubble-bar-popup-view", |
|
|
|
return { |
|
|
|
text: "", |
|
|
|
baseCls: "bi-text-bubble-bar-popup-view", |
|
|
|
width: 250 |
|
|
|
text: "", |
|
|
|
|
|
|
|
width: 250, |
|
|
|
|
|
|
|
buttons: [{ |
|
|
|
|
|
|
|
level: "ignore", |
|
|
|
|
|
|
|
value: false, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_Cancel") |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
value: true, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_Sure") |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
render: function(){ |
|
|
|
render: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
var buttons = BI.map(o.buttons, function (index, buttonOpt) { |
|
|
|
|
|
|
|
if (BI.isWidget(buttonOpt)) { |
|
|
|
|
|
|
|
return buttonOpt; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return BI.extend({ |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
height: 24, |
|
|
|
|
|
|
|
handler: function (v) { |
|
|
|
|
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, v); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, buttonOpt); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.bubble_bar_popup_view", |
|
|
|
type: "bi.bubble_bar_popup_view", |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
@ -52565,22 +52591,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, { |
|
|
|
tgap: 25, |
|
|
|
tgap: 25, |
|
|
|
bgap: 10 |
|
|
|
bgap: 10 |
|
|
|
}, |
|
|
|
}, |
|
|
|
buttons: [{ |
|
|
|
buttons: buttons |
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
value: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
|
|
|
|
level: "ignore", |
|
|
|
|
|
|
|
height: 24, |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
value: BI.i18nText("BI-Basic_Sure"), |
|
|
|
|
|
|
|
height: 24, |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|