我是 SAPUI5 框架的新手。
我在 SAPUI5 中将图像添加到
StandardTile
时遇到问题。请回答我是否可以将图像添加到StandardTile
。
我已经尝试了所有可能的方法将图像添加到
StandardTile
但我没有得到解决方案。
我可以将图像添加到
CustomTile
,但不能添加到 StandardTile
。
请检查我的以下代码:
new sap.m.StandardTile({
content: [
new sap.m.Image({
width: "220px",
height: "250px",
src: "splitapp/images/Shirt-1.jpg"
})
]
})
new sap.m.CustomTile({
content: [
new sap.m.Image({
width: "220px",
height: "300px",
src: "splitapp/images/Shirt-2.jpg"
})
]
})