SplitApp on portrait mode. Show 1st view instead of the 2nd view

╄→гoц情女王★ 提交于 2019-12-25 09:11:40

问题


On UI5 and FIORI SplitApp application, whenever users are viewing the app on portrait mode on their devices, the first screen that is being shown is the 2nd view/screen. Is it possible to bypass this behavior (but still using splitapp) so the on load of the application, users will see the 1st screen of the split app?

Thanks!


回答1:


Switch your targets in your manifest.json (or wherever you are defining your routes)

"routes": [{
    "pattern": "",
    "name": "master",
    "target": ["home", "master"]
}, {
    ...
}]

This means that home (the detail view) is rendered below master (the master view), thus the master view is shown first.



来源:https://stackoverflow.com/questions/40374619/splitapp-on-portrait-mode-show-1st-view-instead-of-the-2nd-view

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!