在 class sap.m.List 中哪里可以找到 'items' 聚合?
Where to find 'items' aggregation in class sap.m.List?
我正在关注 walkthrough tutorial on Step:20 Aggregation Binding and in the code below, I cannot figure out where is it documented in the class sap.m.List,即 items 聚合应该绑定到 JSON 数据的根路径 Invoices,例如 items="{invoice>/Invoices}"
在下面的代码中。
webapp/view/InvoiceList.view.xml(新)
<mvc:View
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc">
<List
headerText="{i18n>invoiceListTitle}"
class="sapUiResponsiveMargin"
width="auto"
items="{invoice>/Invoices}" >
<items>
<ObjectListItem
title="{invoice>Quantity} x {invoice>ProductName}"/>
</items>
</List>
</mvc:View>
它确实声明 class sap.m.List has an aggregation (0..n) called items which can take items of the type sap.m.ListItemBase。
参考文档Aggregation Binding topic in Data Binding Module。
即使是 Property binding 主题,也将帮助您更好地理解概念。
我正在关注 walkthrough tutorial on Step:20 Aggregation Binding and in the code below, I cannot figure out where is it documented in the class sap.m.List,即 items 聚合应该绑定到 JSON 数据的根路径 Invoices,例如 items="{invoice>/Invoices}"
在下面的代码中。
webapp/view/InvoiceList.view.xml(新)
<mvc:View
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc">
<List
headerText="{i18n>invoiceListTitle}"
class="sapUiResponsiveMargin"
width="auto"
items="{invoice>/Invoices}" >
<items>
<ObjectListItem
title="{invoice>Quantity} x {invoice>ProductName}"/>
</items>
</List>
</mvc:View>
它确实声明 class sap.m.List has an aggregation (0..n) called items which can take items of the type sap.m.ListItemBase。
参考文档Aggregation Binding topic in Data Binding Module。 即使是 Property binding 主题,也将帮助您更好地理解概念。