|
|
|
@ -58,6 +58,15 @@ BI.Segment = BI.inherit(BI.Widget, {
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.buttonGroup.getValue(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (buttons) { |
|
|
|
|
var o = this.options; |
|
|
|
|
this.buttonGroup.populate([BI.createItems(buttons, { |
|
|
|
|
type: "bi.segment_button", |
|
|
|
|
height: BI.toPix(o.height, 2), |
|
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
|
})]); |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
BI.Segment.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.shortcut("bi.segment", BI.Segment); |
|
|
|
|