|
|
|
@ -27,15 +27,33 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var o = this.options, c = this._const; |
|
|
|
|
var blank = BI.createWidget({ |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
columnSize: [o.blankWidth, o.leftIconWrapperWidth || o.height, o.rightIconWrapperWidth || o.height, "fill"], |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.layout", |
|
|
|
|
width: o.blankWidth, |
|
|
|
|
height: o.height |
|
|
|
|
}); |
|
|
|
|
this.text = BI.createWidget({ |
|
|
|
|
width: o.blankWidth |
|
|
|
|
}, { |
|
|
|
|
type: "bi.icon_label", |
|
|
|
|
cls: o.iconCls1, |
|
|
|
|
width: o.leftIconWrapperWidth || o.height, |
|
|
|
|
height: o.height, |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconHeight: o.iconHeight |
|
|
|
|
}, { |
|
|
|
|
type: "bi.icon_label", |
|
|
|
|
cls: o.iconCls2, |
|
|
|
|
width: o.rightIconWrapperWidth || o.height, |
|
|
|
|
height: o.height, |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
iconHeight: o.iconHeight |
|
|
|
|
}, { |
|
|
|
|
type: "bi.label", |
|
|
|
|
cls: "list-item-text", |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.text = _ref; |
|
|
|
|
}, |
|
|
|
|
textAlign: "left", |
|
|
|
|
hgap: o.textHgap, |
|
|
|
|
vgap: o.textVgap, |
|
|
|
@ -45,27 +63,8 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
value: o.value, |
|
|
|
|
keyword: o.keyword, |
|
|
|
|
height: o.height |
|
|
|
|
}); |
|
|
|
|
this.icon1 = BI.createWidget({ |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: o.iconCls1, |
|
|
|
|
forceNotSelected: true, |
|
|
|
|
width: o.height, |
|
|
|
|
height: o.height |
|
|
|
|
}); |
|
|
|
|
this.icon2 = BI.createWidget({ |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: o.iconCls2, |
|
|
|
|
forceNotSelected: true, |
|
|
|
|
width: o.height, |
|
|
|
|
height: o.height |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget(BI.extend({ |
|
|
|
|
element: this |
|
|
|
|
}, BI.LogicFactory.createLogic("horizontal", BI.extend(o.logic, { |
|
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection("left", blank, this.icon1, this.icon2, this.text) |
|
|
|
|
})))); |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
|