|
|
@ -233,6 +233,17 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setValueMap: function (map) { |
|
|
|
|
|
|
|
map = map || {}; |
|
|
|
|
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
|
|
|
|
|
if (BI.isNotNull(map[item.getValue()])) { |
|
|
|
|
|
|
|
item.setSelected && item.setSelected(true); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
item.setSelected && item.setSelected(false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getNotSelectedValue: function () { |
|
|
|
getNotSelectedValue: function () { |
|
|
|
var v = []; |
|
|
|
var v = []; |
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
|