|
|
@ -16,14 +16,12 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
this.text = BI.createWidget({ |
|
|
|
this.text = BI.createWidget({ |
|
|
|
type: "bi.text_button", |
|
|
|
type: "bi.label", |
|
|
|
cls: "list-group-item-text", |
|
|
|
cls: "list-group-item-text", |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: o.height, |
|
|
|
height: o.height |
|
|
|
disableSelected: true, |
|
|
|
|
|
|
|
selected: this._digest(o.value) |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.icon1 = BI.createWidget({ |
|
|
|
this.icon1 = BI.createWidget({ |
|
|
@ -116,9 +114,7 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
const selected = this._digest(v); |
|
|
|
this.icon1.setSelected(this._digest(v)); |
|
|
|
this.icon1.setSelected(selected); |
|
|
|
|
|
|
|
this.text.setSelected(selected); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.DownListGroupItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.DownListGroupItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|