zoukankan      html  css  js  c++  java
  • 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的原创文章,请关注公众号"汪子熙":

  • 相关阅读:
    生产环境常见的几种JVM异常
    JVM垃圾回收时如何确定垃圾?是否知道什么是GCRoots?
    你平时工作用过的JVM常用基本配置参数有哪些?
    java X参数
    JUC之CAS
    JUC之List集合
    JUC之lock
    JUC之volatile
    BZOJ2132: 圈地计划
    BZOJ3991: [SDOI2015]寻宝游戏
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/12332046.html
Copyright © 2011-2022 走看看