简体   繁体   中英

Binding two models in SAPUI5

I have two components, a multiComboBox and a checkbox. 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. And if the comboBox is disabled, the property 'selected' of the checkbox cannot be changed.

var comboBox = new sap.m.MultiComboBox({
  enabled:'{isOthers}',
  });
var checkbox = new sap.m.CheckBox({
  selected: '{checked}'
});

我不明白“ 如果禁用了comboBox,则不会更改复选框的'selected'属性。 ”无论如何,请检查以下代码: JS Bin Demonstration

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM