我sap.m单选按钮组在我view.xml用SAP UI5单选按钮组
<m:RadioButtonGroup valueState="" select="changeRegion()">
<m:buttons>
<m:RadioButton id="rb-S" text="S"/>
<m:RadioButton id="rb-MW" text="MW"/>
<m:RadioButton id="rb-NE" text="NE"/>
<m:RadioButton id="rb-W" text="W"/>
</m:buttons>
</m:RadioButtonGroup>
在我Controller.js
changeRegion: function(e){
console.log(e.getParameter('selectedIndex'));
}
我能够访问选定的指标单选按钮。有什么办法可以获得所选单选按钮的文字?
近日获悉替代到'sap.ui.getCore()。byId(this.createId(“radioButtonGroup”))'this.getView()。byId(“radioButtonGroup”)''。我读过sap.ui.getCore()不推荐 –