【发布时间】:2021-08-15 14:42:04
【问题描述】:
我想知道如何从另一种方法中选择和触发 (CheckBox) 选择事件,就好像在使用 selectionFunction 的情况下模拟 CheckBox 的选择一样。
我确实有以下复选框:
<VBox>
<CheckBox select="onSelectFirstCheckBox" />
<CheckBox select="onSelectSecondCheckBox" />
</VBox>
附带两种方法:
onSelectionFirstCheckBox: function(oEvent) {
console.log("Hello World");
//From here select the second checkBox + trigger it's selection method
},
onSelectionSecondCheckBox: function(oEvent) {
console.log("Hello World");
}
问题:选择第一个CheckBox和随后在onSelectionFirstCheckBox我想选择第二个CheckBox并触发它的方法:onSelectionSecondCheckBox。该怎么做?
【问题讨论】:
标签: javascript xml binding sapui5