SAP Fiori Elements List Report Smart Table Toolbar 的 XML 视图实现

SAP UI5 同时被 2 个专栏收录
1155 篇文章 11 订阅
596 篇文章 9 订阅

http://localhost:8080/resources/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTableToolbar.fragment.xml

SmartTableToolbar.fragment.xml 里,包含了 BreakoutActions.fragment:

http://localhost:8080/resources/sap/suite/ui/generic/template/ListReport/view/fragments/BreakoutActions.fragment.xml

源代码:

<core:FragmentDefinition xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
						 xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:build="sap.build">

	<template:if test="{= ${tmpEntitySet>EntitySet} === ${parameter>/entitySet} }">
		<template:repeat list="{tmpEntitySet>Actions}" var="customaction">
			<!--all break out actions which are neither determining nor global-->
			<template:if test="{= !${customaction>determining} &amp;&amp; !${customaction>global}}">
				<Button id="{parts: [{path: 'customaction>'}, {path: 'tabItem>'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBreakoutActionButtonId'}"
						enabled="{parts: [{path: 'customaction>'}, {path: 'tabItem>'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBreakoutActionEnabledKey'}"
						text="{customaction>text}"
						press="{customaction>press}" type="Transparent">
					<layoutData>
						<OverflowToolbarLayoutData priority = "{customaction>importance}"/>
					</layoutData>
				</Button>
            </template:if>
		</template:repeat>
	</template:if>
</core:FragmentDefinition>

运行时,该 XML 视图源代码被 XMLPreprocessor.js 解析:

SmartTableToolbar.fragment.xml 里包含了 BreakoutActions.fragment.xml:

getBreakoutActionButtonId:

更多Jerry的原创文章,尽在:“汪子熙”:

  • 0
    点赞
  • 0
    评论
  • 1
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

相关推荐
©️2020 CSDN 皮肤主题: 博客之星2020 设计师:CY__ 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值