什麼是SAP UI5的Component-preload.js
First of all, the Component-preload.js works as expected. In your design time, ( WebIDE or Eclipse ) , all development artifact, the .js files are organized into different folders. And in the productive use case, the content of all js files are combined into a single file to save network traffic, reduce needed roundtrip to load those resource. See more details from these links:
Component-preload of Fiori Apps
UI5 Components: Component-preload.js
So back to your question: why although you have overwritten onAfterRendering method, however still the standard one is called in the runtime?
Again, this unexpected behavior is caused by closure.
The AfterRendering function is not directly called but via event-subscribe&raise style, via javascript keyword apply.
If you find the framework code is difficult to read, just refer to the example below which is caused by the same reason by easier to understand.
http:// stackoverflow.com/quest ions/750486/javascript-closure-inside-loops-simple-practical-example
finally, the purpose of the line oAtt.oHeaderToolbar.setVisible(false); is to hide the built-in toolbar of the attachment subview. If this line is missing, there will be duplicate toolbar for each uploaded attachment.
Currently the standard code in onAfterRendering never considers the possibility that the attachment panel would be removed from UI, thus I think this is a bug. Please kindly create one incident to my component and we will do a fix for it. Thanks a lot!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2675749/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 什麼是 SAP UI5 的 Element bindingUI
- 什麼是 SAP UI5 的 Smart FieldUI
- 什麼是 SAP UI5 Application IndexUIAPPIndex
- 什麼是 SAP UI5 的 Hybrid Web ContainersUIWebAI
- 什麼是 SAP UI5 的繫結路徑UI
- SAP UI5 裡一個功能的 compatibility version 是什麼含義?UI
- 如何製作包含了 component-preload.js 在內的 SAP UI5 釋出版本JSUI
- 一個好用的 SAP UI5 本地打包(build)工具,自動生成Component-preload.jsUIJS
- SAP UI5 初學者教程之十 - 什麼是 SAP UI5 應用的描述符 Descriptor 試讀版UI
- SAP Move to Rise是什麼意思? SAP Move的五條路徑是什麼?
- 什麼是SAP GUI的clientGUIclient
- 什麼是 SAP HCEA
- 什麼是 SAP BAPIAPI
- 通過 SAP UI5 的 TypeScript 開發環境,來學習什麼是 DefinitelyTypedUITypeScript開發環境
- 透過 SAP UI5 的 TypeScript 開發環境,來學習什麼是 DefinitelyTypedUITypeScript開發環境
- SAP UI5 中的數字 5 代表什麼含義?UI
- 什麼是 SAP Commerce Cloud 的 catalogCloud
- 什麼是 SAP ABAP 的 include structureStruct
- 什麼是 SAP Commerce yFormsORM
- 什麼是 SAP Business FunctionFunction
- 什麼是 SAP enhancement packagePackage
- 什麼是 SAP Fiori Tools
- 什麼是 SAP ABAP 的 SYSTEM_EXIT
- 什麼是 SAP Spartacus UI 的 feature levelUI
- 什麼是 SAP Spartacus UI 的 code deprecationUI
- 什麼是 SAP Spartacus FacadeFactoryService 中的 Resolver
- 什麼是 SAP HANA XS JavaScriptJavaScript
- 什麼是 SAP Support Package StackPackage
- 什麼是SAP中介軟體的CSA queue
- 什麼是 SAP Spartacus UI 的 direction 服務UI
- 什麼是 SAP SUP - Sybase Unwired PlatformPlatform
- 什麼是 SAP vocabulary-based annotations
- 一文了解SAP IBP是什麼
- 什麼是SAP Intelligent Robitic Process Automation - iRPAIntel
- 什麼是 SAP C/4HANA Foundation
- 「翻譯」什麼是SAP F&R?
- 27.SAP MII應用分析(02)什麼是SAP MII?
- 26.SAP MII應用分析(01)什麼是SAP MII?