-2
var col5 = new sap.m.Column("col5", {
width: "auto",
header: new sap.m.Label({
text: "Late"
}),
footer: new sap.ui.core.Icon({
src: {
path: "Late",
formatter: function(approved) {
if (approved == "Yes") {
return "sap-icon://notification";
}
}
}
}
});
在調試模式下,我檢查了「approved」中的值,但它具有空值。請建議。如何根據sap.m.column中的條件設置圖標
因爲在這裏似乎沒有任何約束力,所以你仍然使用'路徑':) –
嗨,Ash,謝謝你的回覆。你能幫我一下嗎?我是新來的SAP UI5 –
這將需要一些更多示例代碼:p喜歡你的數據和模型 –