所以我正在做一个表格,我需要显示,如果选择了单选按钮,可以说两个输入。如果未选中,则什么也不会发生,用户将看不到这些输入。如果未选中该框,它们应该被隐藏。 到目前为止,在我看来和控制器中,我有以下内容:
<RadioButton id="ch1" select="checkDone" text="Check" />
<FlexBox class="sapUiSmallMarginEnd" id="f1">
<Input value="ssss" />
</FlexBox>
<FlexBox direction="Column" id="f2">
<Input value="dddd" />
</FlexBox>
checkDone: function (oEvent) {
var checkV = this.byId("ch1").getSelected(); // not working
document.getElementById("f1").style.visibility = 'hidden'