|
|
|
@ -38,12 +38,12 @@ export class Segment extends Widget {
|
|
|
|
|
const o = this.options; |
|
|
|
|
this.buttonGroup = createWidget({ |
|
|
|
|
element: this, |
|
|
|
|
height: toPix(o.height), |
|
|
|
|
type: ButtonGroup.xtype, |
|
|
|
|
value: o.value, |
|
|
|
|
items: [ |
|
|
|
|
createItems(o.items, { |
|
|
|
|
type: SegmentButton.xtype, |
|
|
|
|
height: toPix(o.height, 2), |
|
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
|
}) |
|
|
|
|
], |
|
|
|
@ -88,7 +88,6 @@ export class Segment extends Widget {
|
|
|
|
|
this.buttonGroup.populate([ |
|
|
|
|
createItems(buttons, { |
|
|
|
|
type: SegmentButton.xtype, |
|
|
|
|
height: toPix(o.height, 2), |
|
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
|
}) |
|
|
|
|
]); |
|
|
|
|