|
|
|
@ -12,8 +12,7 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
iconCls2: "pull-right-e-font" |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
|
BI.DownListGroupItem.superclass._init.apply(this, arguments); |
|
|
|
|
render: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
var self = this; |
|
|
|
|
this.text = BI.createWidget({ |
|
|
|
@ -52,27 +51,6 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
forceNotSelected: true |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
var blank = BI.createWidget({ |
|
|
|
|
type: "bi.layout", |
|
|
|
|
width: 24 |
|
|
|
|
}); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.icon2, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0, |
|
|
|
|
right: 0 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget(BI.extend({ |
|
|
|
|
element: this |
|
|
|
|
}, BI.LogicFactory.createLogic("horizontal", BI.extend(o.logic, { |
|
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection("left", this.icon1, this.text, blank) |
|
|
|
|
})))); |
|
|
|
|
|
|
|
|
|
this.element.hover(function () { |
|
|
|
|
if (self.isEnabled()) { |
|
|
|
|
self.hover(); |
|
|
|
@ -82,6 +60,12 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
self.dishover(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: "bi.horizontal_fill", |
|
|
|
|
columnSize: [36, "fill", 24], |
|
|
|
|
items: [this.icon1, this.text, this.icon2] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_getLevel: function () { |
|
|
|
|