在 SAP UI5 中的 Fiori 應用中動態分配 XML 檢視中的影像來源
可以,但你需計算動態欄位。
首先,你需要提及繫結很複雜,所以更改此標示 −
“data-sap-ui-bindingSyntax="complex" ”.
然後,使用可用於格式化的輔助函式。
fnImageFmtr: function(value) {
var imgSrc = "Image" + value;
return imgSrc;
}最後,在 XML 檢視中影像標記中使用函式。
<Image src="{path:'<Model Property>',formatter:'. fnImageFmtr}"/>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP