什麼是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 的 Smart FieldUI
- 什麼是 SAP UI5 的 Element bindingUI
- 什麼是 SAP UI5 Application IndexUIAPPIndex
- 什麼是 SAP UI5 的繫結路徑UI
- 什麼是 SAP UI5 的 Hybrid Web ContainersUIWebAI
- SAP UI5 初學者教程之十 - 什麼是 SAP UI5 應用的描述符 Descriptor 試讀版UI
- SAP UI5 裡一個功能的 compatibility version 是什麼含義?UI
- 什麼是 SAP BAPIAPI
- 什麼是SAP GUI的clientGUIclient
- 一個好用的 SAP UI5 本地打包(build)工具,自動生成Component-preload.jsUIJS
- 如何製作包含了 component-preload.js 在內的 SAP UI5 釋出版本JSUI
- 什麼是 SAP Business FunctionFunction
- 什麼是 SAP enhancement packagePackage
- 什麼是 SAP ABAP 的 include structureStruct
- 什麼是SAP系統,關於SAP的故事
- SAP UI5 中的數字 5 代表什麼含義?UI
- 透過 SAP UI5 的 TypeScript 開發環境,來學習什麼是 DefinitelyTypedUITypeScript開發環境
- 通過 SAP UI5 的 TypeScript 開發環境,來學習什麼是 DefinitelyTypedUITypeScript開發環境
- 什麼是 SAP Spartacus UI 的 code deprecationUI
- 什麼是 SAP ABAP 的 SYSTEM_EXIT
- 什麼是 SAP HANA XS JavaScriptJavaScript
- 什麼是 SAP Support Package StackPackage
- 什麼是SAP系統,關於SAP的故事(轉載)
- 什麼是SAP中介軟體的CSA queue
- 什麼是 SAP Spartacus UI 的 feature levelUI
- 什麼是 SAP Spartacus UI 的 direction 服務UI
- 什麼是 SAP SUP - Sybase Unwired PlatformPlatform
- 什麼是 SAP Commerce Cloud 的 catalogCloud
- 「翻譯」什麼是SAP F&R?
- 26.SAP MII應用分析(01)什麼是SAP MII?
- 27.SAP MII應用分析(02)什麼是SAP MII?
- SAP UI5 的前世今生UI
- 什麼是 SAP 電商雲 Spartacus UI 的 proxy façadeUI
- 什麼是SAP CDS重定向檢視(Redirect View)?View
- RISE with SAP是什麼?適合哪些企業使用!
- 什麼是 SAP ABAP FDA - Fast Data Access 技術?AST
- Java是什麼_Java是做什麼的?Java
- NLA是什麼?NLA的原理是什麼?