SAP UI5 StandardListItem和ObjectListItem的区别
生活随笔
收集整理的這篇文章主要介紹了
SAP UI5 StandardListItem和ObjectListItem的区别
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
StandardListItem的用法:
<mvc:View controllerName="sapcp.cf.tutorial.app.controller.View1" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m"><Shell id="shell"><App id="app"><pages><Page id="page" title="{i18n>title}"><content><List items="{/Products}"><StandardListItem type="Navigation" press="handleListItemPress" title="{ProductName}"/></List></content></Page></pages></App></Shell> </mvc:View>ObjectListItem的用法:
<mvc:View controllerName="sapcp.cf.tutorial.app.controller.View1" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m"><Shell id="shell"><App id="app"><pages><Page id="page" title="{i18n>title}"><content><List items="{/Products}"><ObjectListItem type="Navigation" press="handleListItemPress" title="{ProductName}" number="{= ((${UnitPrice} * 100) / 100).toFixed(2) }"numberUnit="{i18n>currency}"><attributes><ObjectAttribute text="{QuantityPerUnit}"/></attributes><firstStatus><ObjectStatus text="{= ${Discontinued}? 'Discontinued' : 'Available' }" state="{= ${Discontinued}? 'Error' : 'Success' }"/></firstStatus></ObjectListItem></List></content></Page></pages></App></Shell> </mvc:View>要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的SAP UI5 StandardListItem和ObjectListItem的区别的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SAP CRM和Cloud for Cu
- 下一篇: 华为基本法是什么梗 华为基本法含义出处详