|
|
|
@ -18,11 +18,11 @@ BI.Segment = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.buttonGroup = BI.createWidget({ |
|
|
|
|
element: this, |
|
|
|
|
height: BI.toPix(o.height), |
|
|
|
|
type: "bi.button_group", |
|
|
|
|
value: o.value, |
|
|
|
|
items: [BI.createItems(o.items, { |
|
|
|
|
type: "bi.segment_button", |
|
|
|
|
height: BI.toPix(o.height, 2), |
|
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
|
})], |
|
|
|
|
layouts: [{ |
|
|
|
@ -63,7 +63,6 @@ BI.Segment = BI.inherit(BI.Widget, {
|
|
|
|
|
var o = this.options; |
|
|
|
|
this.buttonGroup.populate([BI.createItems(buttons, { |
|
|
|
|
type: "bi.segment_button", |
|
|
|
|
height: BI.toPix(o.height, 2), |
|
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
|
})]); |
|
|
|
|
}, |
|
|
|
|