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