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