|
|
|
@ -8,6 +8,7 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
}, |
|
|
|
|
// invalid: true,
|
|
|
|
|
iconCls1: "dot-e-font", |
|
|
|
|
icon: "", |
|
|
|
|
iconCls2: "pull-right-e-font" |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -21,20 +22,29 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
textAlign: "left", |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
height: o.height |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.icon1 = BI.createWidget({ |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: o.iconCls1, |
|
|
|
|
width: 36, |
|
|
|
|
height: o.height, |
|
|
|
|
iconHeight: o.iconHeight, |
|
|
|
|
iconWidth: 36, |
|
|
|
|
disableSelected: true, |
|
|
|
|
selected: this._digest(o.value) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if (BI.isPlainObject(o.icon)) { |
|
|
|
|
this.icon1 = BI.createWidget({ |
|
|
|
|
width: 36, |
|
|
|
|
height: o.height, |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
items: [o.icon], |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.icon1 = BI.createWidget({ |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: o.iconCls1, |
|
|
|
|
width: 36, |
|
|
|
|
height: o.height, |
|
|
|
|
iconHeight: o.iconHeight, |
|
|
|
|
iconWidth: 36, |
|
|
|
|
disableSelected: true, |
|
|
|
|
selected: this._digest(o.value), |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.icon2 = BI.createWidget({ |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: o.iconCls2, |
|
|
|
@ -117,8 +127,8 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
this.icon1.setSelected(this._digest(v)); |
|
|
|
|
} |
|
|
|
|
this.icon1.setSelected && this.icon1.setSelected(this._digest(v)); |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
BI.DownListGroupItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.shortcut("bi.down_list_group_item", BI.DownListGroupItem); |
|
|
|
|
BI.shortcut("bi.down_list_group_item", BI.DownListGroupItem); |
|
|
|
|