【发布时间】:2016-07-27 15:10:27
【问题描述】:
我真的不明白下面的属性 controlAggregation 对路由 SAPUI5 应用程序的作用。 没有具有该 ID 的元素。我在此处找到的演示应用程序中的任何地方都找不到对“页面”的任何引用:SAPUI5 routing demo
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"viewPath": "sap.ui.demo.nav.view",
"controlId": "app",
"controlAggregation": "pages", // what does this do?
"transition": "slide",
"bypassed": {
"target": "notFound"
}
视图定义如下-未提及“页面”
<mvc:View
controllerName="sap.ui.demo.nav.controller.App"
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc"
displayBlock="true">
<App id="app"/>
</mvc:View>
还有
<mvc:View
controllerName="sap.ui.demo.nav.controller.Home"
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc">
<Page title="{i18n>homePageTitle}" class="sapUiResponsiveContentPadding">
<content>
<Button id="displayNotFoundBtn" text="{i18n>DisplayNotFound}" press="onDisplayNotFound" class="sapUiTinyMarginEnd"/>
</content>
</Page>
</mvc:View>
【问题讨论】:
-
你想把视图放在哪里?
标签: sapui5