OpenUI5控件sap.ui.commons.SegementedButton在一行中呈现一组按钮。如何将SegementedButton的这些按钮渲染成网格(大多是3 x 7)而不是单行?
new sap.ui.commons.SegmentedButton({
buttons:
[
new sap.ui.commons.Button({id:"b1",height:"3em",width:"3%",text:"1"}),
new sap.ui.commons.Button({id:"b2",height:"3em",width:"3%",text:"2"}),
new sap.ui.commons.Button({id:"b3",height:"3em",width:"3%",text:"3"}),
new sap.ui.commons.Button({id:"b4",height:"3em",width:"3%",text:"4"}),
new sap.ui.commons.Button({id:"b5",height:"3em",width:"3%",text:"5"}),
new sap.ui.commons.Button({id:"b6",height:"3em",width:"3%",text:"6"}),
new sap.ui.commons.Button({id:"b7",height:"3em",width:"3%",text:"7"}),
new sap.ui.commons.Button({id:"b8",height:"3em",width:"3%",text:"8"}),
new sap.ui.commons.Button({id:"b22",height:"3em",width:"5%", text:"9"})
select:function(oEvent) {
alert("Selected button id: "+oEvent.getParameters().selectedButtonId);}
})