|
|
@ -23,13 +23,12 @@ BI.Segment = BI.inherit(BI.Widget, { |
|
|
|
items: BI.createItems(o.items, { |
|
|
|
items: BI.createItems(o.items, { |
|
|
|
type: "bi.segment_button", |
|
|
|
type: "bi.segment_button", |
|
|
|
height: BI.toPix(o.height, 2), |
|
|
|
height: BI.toPix(o.height, 2), |
|
|
|
whiteSpace: o.whiteSpace |
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
}), |
|
|
|
}), |
|
|
|
layout: [ |
|
|
|
layouts: o.layouts || [{ |
|
|
|
{ |
|
|
|
type: "bi.table", |
|
|
|
type: "bi.center" |
|
|
|
columnSize: BI.makeArrayByArray(o.items, "fill"), |
|
|
|
} |
|
|
|
}], |
|
|
|
] |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
this.buttonGroup.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
this.buttonGroup.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|