`
JerryWang_SAP
  • 浏览: 963567 次
  • 性别: Icon_minigender_1
  • 来自: 成都
文章分类
社区版块
存档分类
最新评论

什么是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.

stackoverflow.com/quest

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!

0
0
分享到:
评论

相关推荐

    UI5Preload:用于 OPENUI5SAPUI5 项目的 Component-preload.js gulp 文件

    UI5预加载使用 Gulp 为 OPENUI5/SAPUI5 构建 Component-preload.js。 预加载仅组合您想要的文件(主页、搜索、登录页面等),因此您可以使更大的应用程序依赖于初始加载。 请相应地配置 gulpfile(视图目录、预加载...

    seajs-preload.js

    用于seajs的预加载使用,有需要的小伙伴可以免费下载使用。方便大家多多分享免费的资源,有问题随时给我们留言。希望能帮助大家解决更多的问题

    sapui5-grunt:用于SAPUI5 CI的package.json和Gruntfile.js

    SAPUI5项目中的Gruntfile.js和npm package.json。 应用程序文件必须位于webapp文件夹中。 但是,可以在Gruntfile.js中更改名称和路径。 安装 安装Node.js以获取npm。 安装咕unt声: npm install -g grunt-cli ...

    videojs-contrib-hls.min.js

    <video id="my-video" style="width:100%;..." class="video-js" autoplay controls preload="auto" data-setup="{}"> <source src="rtmp://192.168.1.3:9001/stream/12345" type="rtmp/flv"> </video>

    libsublime-imfix.so

    设置 LD_PRELOAD 并启动 Sublime Text LD_PRELOAD=./libsublime-imfix.so subl 修改 /usr/share/applications/sublime_text.desktop 为 复制代码 [Desktop Entry] [...] Exec=env LD_PRELOAD=/opt/sublime_text/...

    vue-preload-用于添加的插件Vue-Vue.js开发

    演示使用vue-ssr-boilerplate安装npm install vue-link-preload --save用法import从'vue-link-preload'预加载Vue.use(Preload)//动态添加单个项目//默认情况下为'script'类型被分配了Vue.addPreloadLink('...

    ELS-N04_hw_la_R2-C605_PRELOAD-10.1.0.1_ReleaseNotes

    ELS-N04_hw_la_R2-C605_PRELOAD-10.1.0.1_ReleaseNotes

    aspx页面事件执行顺序

    UI.PreInit---->Page.PreInit---->UI.Init---->Page.Init---->UI.InitComplite---->Page.InitComplite---->UI.PreLoad---->Page.PreLoad---->UI.Load---->Page.Load---->UI.LoadComplete---->Page.LoadComplete---->...

    sublime-imfix.c

    sudo apt-get install build-essential sudo apt-get install libgtk2.0-dev ...Exec=env LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so /opt/sublime_text/sublime_text --command new_file

    video-js.min.css

    videojs直播 <video id="my-video" style="width:100%..." class="video-js" autoplay controls preload="auto" data-setup="{}"> <source src="rtmp://192.168.1.3:9001/stream/12345" type="rtmp/flv"> </video>

    preload.js图片预加载插件

    图片预加载插件。包含有序加载和无序加载两种。具体使用方法,参考https://blog.csdn.net/yang1393214887/article/details/92582715

    前端项目-PreloadJS.zip

    前端项目-PreloadJS,预加载JS使预加载资产变得容易:图像、声音、javascript、字体、JSON和文本数据

    Flappy-Bird-Game-using-create.js

    使用Create.js套件库创建完整的Flappy Bird克隆:Easel.js用于绘图,Tween.js用于运动,Preload.js用于资产加载。 首先,我们将使用Easel.js将背景和云绘制到画布上。 要加载云(和其他资产),我们将使用Preload.js...

    seajs-preload:用于循环预加载的 Sea.js 插件

    script src =" path/to/seajs-preload.js " > </ script > < script > seajs . config ( { preload : [ 'jquery' ] } ) seajs . use ( "path/to/mod" ) </ script > 笔记 这个插件基于 seajs...

    CMD规范之seajs

    seajs常见配置解析和常见插件的使用。sea.js,seajs-css.js,seajs-debug.js,seajs-preload.js,seajs-log.js等

    网站顶部显示预加载进度条插件preload.js

    网站顶部显示预加载进度条插件preload.js

    react-lazy-with-preload:具有预加载支持的React.lazy()!

    react-lazy-with-preload包装了React.lazy() API,并增加了在首次渲染组件之前对其进行预加载的功能。安装npm install react-lazy-with-preload用法前: import { lazy , Suspense } from "react" ;const Other...

    laravel-mix-preload:根据您的Mix清单添加预加载和预取链接

    根据您的Mix清单添加预加载和预取链接 < head > < title >... " /js/preload-biglibrary.js " : " /js/preload-biglibrary.js " , " /js/vendors~preload-biglibrary.js " : " /js/ve

    图片预加载插件preloadjs

    图片预加载插件---preload.js

    【JavaScript源代码】详解JS WebSocket断开原因和心跳机制.docx

    详解JS WebSocket断开原因和心跳机制  1、断开原因 WebSocket断开的原因有很多,最好在WebSocket断开时,将错误打印出来。 ws.onclose = function (e) { console.log('websocket 断开: ' + e.code + ' ' + e....

Global site tag (gtag.js) - Google Analytics