SAP UI5 component container initialized in index html

简介: Created by Wang, Jerry, last modified on Mar 23, 2015

image.pngHeader and Bootstrap

In the header, we have the HTML5 document type declaration, and a couple of meta tags. One that instructs Internet Explorer to use the newest rendering mode; for UI5 mobile this would be in preparation for future IE support, for UI5 desktop this is required to make sure IE does not use a compatibility mode. The other is to declare that the character set used in the app is UTF8 (change this if required to whatever is necessary).

We also have the UI5 bootstrap; in this example we have the so-called “standard variant”, pulling in the UI5 core from wherever it is normally served. With the bootstrap there are some data parameters. These parameters serve to load the sap.m library, so that we can specify the sap.m.Shell control later on (data-sap-ui-libs), declare the theme to be “Blue Crystal” (data-sap-ui-theme), set up the extended syntax for calculated fields in property bindings (data-sap-ui-xx-bindingSyntax) and, finally, where the resources, or artifacts, can be found (data-sap-ui-resourceroots - see below for more information on this).

The Application Startup

Once the UI5 core has been loaded in the bootstrap, we start the application on the Init event via sap.ui.getCore().attachInit. Starting our app involves instantiating an sap.ui.core.ComponentContainer and placing it inside an sap.m.Shell in the body of our HTML document. Note that we’re using the “content” id directly on the HTML element, rather than in a child


element.

The use of the Shell is to control the width of the app on the desktop. On particularly large monitors, a full-width rendering of an application would be too wide. Placing the app’s core inside a Shell container will give you appropriate left and right vertical margins.

目录
相关文章
|
4月前
|
消息中间件 存储 监控
什么是 SAP CRM Middleware Component 里的 PRODUCT_R3_ADAPTER
什么是 SAP CRM Middleware Component 里的 PRODUCT_R3_ADAPTER
25 0
|
7月前
|
数据库连接 BI 数据库
什么是 SAP ABAP 的 Work Process 和 Work Process Index
什么是 SAP ABAP 的 Work Process 和 Work Process Index
29 0
|
3月前
|
前端开发
SAP UI5 应用如何使用 iframe 嵌入其他 HTML 页面试读版
SAP UI5 应用如何使用 iframe 嵌入其他 HTML 页面试读版
33 0
|
6月前
|
前端开发
element-ui+vue上传图片和评论现成完整html页面
element-ui+vue上传图片和评论现成完整html页面
43 1
|
7月前
|
容器
关于 SAP UI5 框架里的 flpSandbox.html
关于 SAP UI5 框架里的 flpSandbox.html
43 0
|
7月前
|
开发者 容器
SAP UI5 Fiori Elements annotation 解析出来的 entity container
SAP UI5 Fiori Elements annotation 解析出来的 entity container
29 0
|
7月前
|
前端开发 UED Windows
关于 SAP_UI software component 的概要介绍
关于 SAP_UI software component 的概要介绍
49 0
|
7月前
|
开发者
SAP UI5 应用启动时加载的 flpSandbox.html 文件有什么作用
SAP UI5 应用启动时加载的 flpSandbox.html 文件有什么作用
21 0
|
7月前
SAP Fiori Elements 应用里 flpSandbox.html 的作用
SAP Fiori Elements 应用里 flpSandbox.html 的作用
30 0
|
7月前
|
JavaScript 容器
关于 SAP Spartacus generic-link component 的模板代码
关于 SAP Spartacus generic-link component 的模板代码
42 2