[英]How do I add two icons to StandardListItem
I have been stuck on this point for a while now.我已经被困在这一点上一段时间了。 Can you please tell me how I can add two icons on a StandardListItem (currently my view is an xml type).
你能告诉我如何在 StandardListItem 上添加两个图标(目前我的视图是 xml 类型)。 My xml view code is shown below:
我的 xml 视图代码如下所示:
<List
id="nameList"
select="selectNameList"
mode="{device>/listMode}"
noDataText="{i18n>masterListNoDataText}"
growing="true"
growingScrollToLoad="false"
growingThreshold="{ui>/listPageSize}"
items="{/components}">
<items
id="masterList">
<StandardListItem
id = "standardListItemID"
class="draggable_list"
title="{name}"
type="{ui>/listItemType}"
press="pressNameListItem"
icon="sap-icon://wrench"
iconInset="true"
description="{type}"
activeIcon="true">
<Image></Image>
</StandardListItem>
</items>
The problem here is that I can't add two icons in the properties of the StandardListItem element.这里的问题是我无法在 StandardListItem 元素的属性中添加两个图标。 The wrench icon is shown on the left side of the list, but it appears that I have no way of adding another icon on the right hand side :(
扳手图标显示在列表的左侧,但似乎我无法在右侧添加另一个图标:(
You can't add more icons to StandardListItem .您无法向StandardListItem添加更多图标。 Use CustomListItem instead.
请改用CustomListItem 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.