|
|
|
@ -11,22 +11,21 @@ BI.Panel = BI.inherit(BI.Widget, {
|
|
|
|
|
titleHeight: 30, |
|
|
|
|
titleButtons: [], |
|
|
|
|
el: {}, |
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
|
} |
|
|
|
|
// logic: {
|
|
|
|
|
// dynamic: false
|
|
|
|
|
// }
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
render: function () { |
|
|
|
|
BI.Panel.superclass._init.apply(this, arguments); |
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
|
|
BI.createWidget(BI.extend({ |
|
|
|
|
element: this |
|
|
|
|
}, BI.LogicFactory.createLogic("vertical", BI.extend(o.logic, { |
|
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection("top", this._createTitle() |
|
|
|
|
, this.options.el) |
|
|
|
|
})))); |
|
|
|
|
return { |
|
|
|
|
type: "bi.vertical_fill", |
|
|
|
|
rowSize: ["", "fill"], |
|
|
|
|
items: [this._createTitle(), this.options.el] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_createTitle: function () { |
|
|
|
@ -56,18 +55,18 @@ BI.Panel = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.left_right_vertical_adapt", |
|
|
|
|
cls: "panel-title bi-header-background bi-border-bottom", |
|
|
|
|
height: BI.toPix(o.titleHeight, 1), |
|
|
|
|
items: { |
|
|
|
|
left: [this.text], |
|
|
|
|
right: [this.button_group] |
|
|
|
|
}, |
|
|
|
|
lhgap: 10, |
|
|
|
|
rhgap: 10 |
|
|
|
|
// el: {
|
|
|
|
|
type: "bi.left_right_vertical_adapt", |
|
|
|
|
cls: "panel-title bi-header-background bi-border-bottom", |
|
|
|
|
height: BI.toPix(o.titleHeight, 1), |
|
|
|
|
items: { |
|
|
|
|
left: [this.text], |
|
|
|
|
right: [this.button_group] |
|
|
|
|
}, |
|
|
|
|
height: BI.toPix(o.titleHeight, 1) |
|
|
|
|
lhgap: 10, |
|
|
|
|
rhgap: 10 |
|
|
|
|
// },
|
|
|
|
|
// height: BI.toPix(o.titleHeight, 1)
|
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|