Skip to content

Commit c14493f

Browse files
committed
OpenUI5 Documentation Update 13.12.2023
1 parent 73a5653 commit c14493f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/Step_2_Bootstrap_TypeScript_32b14d8.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ alert("UI5 is ready");
9191
In this step, we change the `index.html` page to make it load the OpenUI5 framework from the webserver provided by UI5 Tooling. We initialize the core modules with the following configuration options:
9292

9393
- The `id` attribute of the `<script>` tag has to be exactly `"sap-ui-bootstrap"` to ensure proper booting of the OpenUI5 runtime.
94-
- The `src` attribute of the `<script>` tag tells the browser where to find the OpenUI5 core library – it initializes the OpenUI5 runtime and loads additional resources, such as the libraries specified in the `data-sap-ui-theme` attribute.
94+
- The `src` attribute of the `<script>` tag tells the browser where to find the OpenUI5 core library – it initializes the OpenUI5 runtime and loads additional resources, such as the theme specified in the `data-sap-ui-theme` attribute.
9595

9696
- The OpenUI5 controls support different themes. We choose `sap_horizon` as our default theme.
9797

@@ -135,15 +135,15 @@ In this step, we change the `index.html` page to make it load the OpenUI5 framew
135135

136136
Now it's time to enhance our tooling setup once again. This time we install some custom middleware for the ui5-server to facilitate the handling of our development project.
137137

138-
Open a terminal in the app root folder. Then execute the following command:
138+
Open a terminal a terminal and navigate to the app root folder. Then execute the following command:
139139

140140
`npm install ui5-middleware-livereload ui5-middleware-serveframework ui5-tooling-transpile --save-dev`
141141

142142
This will install the `ui5-middleware-livereload`, `ui5-middleware-serveframework`, and `ui5-tooling-transpile` tooling extensions and add them as development dependencies to your `package.json`:
143143

144144
- `ui5-middleware-livereload` is a middleware for ui5-server which triggers a live reload whenever files inside your directory change, e.g. upon *Save*.
145145
- `ui5-middleware-serveframework` is a middleware for ui5-server which delivers the OpenUI5 framework from a locally built version.
146-
- `ui5-tooling-transpile` provides a middleware and a task which transpiles TypeScript code to ES5 using the Babel transpiler. The middleware transpiles a matching `.ts` file on the fly. The task transpiles the relevant source files during the UI5 Tooling build process.
146+
- `ui5-tooling-transpile` is a plugin for UI5 Tooling that transpiles mordern JavaScript \(ES6+\) and TypeScript into OpenUI5-compatible code. OpenUI5 is based on older versions of JavaScript, so this plugin allows you to take advantage of the latest language features and syntax while ensuring that your code remains compatible with OpenUI5.
147147

148148
***
149149

@@ -209,8 +209,6 @@ Now you can benefit from live reload on changes, built framework resources at de
209209

210210
[What is a tsconfig.json?](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html)
211211

212-
[Compatibility Version Information](Compatibility_Version_Information_9feb96d.md "Compatibility version flags allow applications to react to incompatible changes in OpenUI5.")
213-
214212
[Bootstrapping: Loading and Initializing](Bootstrapping_Loading_and_Initializing_a04b0d1.md "To use OpenUI5 features in your HTML page, you have to load and initialize the SAPUI5 library.")
215213

216214
[Content Security Policy](Content_Security_Policy_fe1a6db.md "Content Security Policy (CSP) adds an additional layer of security that can detect and mitigate certain types of attacks, such as cross-site scripting and data injection.")

docs/Step_4_XML_Views_TypeScript_6c66ed8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ XMLView.create({
9090

9191
- Names of XML views always end with `*.view.xml`
9292

93-
- As a general rule, the default XML namespace is `sap.m`
93+
- XML namespaces are declared in the root element of the view. As a general rule, the default XML namespace is `sap.m`
9494

9595
- Other XML namespaces use the last part of the SAP namespace as alias \(for example, `mvc` for `sap.ui.core.mvc`\)
9696

0 commit comments

Comments
 (0)