控制器.js
table.bindItems({
path: "/",
template: new sap.m.ColumnListItem({
cells: [
new sap.m.Text({
text: "{account} ? {recieverAddress} "
}),
]
})
});
Run Code Online (Sandbox Code Playgroud)
在这里,如果“account”为空,我必须显示“recieverAddress”。如何在 sap ui5 中执行此操作?
您可以使用表达式绑定:
text: "{= ${account} ? ${account} : ${recieverAddress} }"
Run Code Online (Sandbox Code Playgroud)
更多信息在这里:https://ui5.sap.com/#/topic/daf6852a04b44d118963968a1239d2c0
归档时间: |
|
查看次数: |
390 次 |
最近记录: |