when is Component-preload.js loaded by UI Framework
生活随笔
收集整理的這篇文章主要介紹了
when is Component-preload.js loaded by UI Framework
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Created by Jerry Wang, last modified on Jan 16, 2015
- sap.ushell.services.AppConfiguration.getMetadata
- sap.ui.getCore().getEventBus().publish(“openApp”,f);
- sap.ui.controller.openSomething
- openDashboard
在UI上點擊了navigation target之后,UI framework首先會去取target component的metadata:
由于addMetadata method 調用時,metadata還不ready,因此會在runtime時去retrieve:
By Andreas:“This preload file can only be produced by our internal (complex) Maven-based build and by the Control development tools in Eclipse which I think are not available outside yet, either.”
update 2017-11-23 5:34PM
它是一個壓縮的js,在upload本地的js到UI5 repository時自動生成的。
上傳之后我們的BSP下面有一個mapping的xml:里面可以找到Component-preload.js對應的文件,文件名為一串guid
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的when is Component-preload.js loaded by UI Framework的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: UI5 Control lazy loa
- 下一篇: UI5 EventBus