[英]Binding two models in SAPUI5
I have two components, a multiComboBox and a checkbox. 我有两个组件,一个multiComboBox和一个复选框。 And both of the components are binding with one model.
而且这两个组件都与一个模型绑定。 I want to know whether the data of the model can be connected in one way.
我想知道模型的数据是否可以一种方式连接。 If I select the checkbox, the comboBox is enabled.
如果选中该复选框,则会启用comboBox。 And if the comboBox is disabled, the property 'selected' of the checkbox cannot be changed.
并且,如果禁用了comboBox,则不能更改复选框的“选择”属性。
var comboBox = new sap.m.MultiComboBox({
enabled:'{isOthers}',
});
var checkbox = new sap.m.CheckBox({
selected: '{checked}'
});
我不明白“ 如果禁用了comboBox,则不会更改复选框的'selected'属性。 ”无论如何,请检查以下代码: JS Bin Demonstration
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.