Skip to content

Commit 14b8e75

Browse files
Update bootstrap configuration option naming (#57)
Co-authored-by: Peter Muessig <[email protected]>
1 parent 78b65ca commit 14b8e75

File tree

152 files changed

+414
-389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+414
-389
lines changed

steps/02/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ We initialize the core modules with the following configuration options:
125125

126126
- The OpenUI5 controls support different themes. With setting the `data-sap-ui-theme` attribute of the `<script>` tag to "sap_horizon" we specify the Horizon theme as our default theme.
127127

128-
- To make use of the most recent functionality of OpenUI5 we specify the `data-sap-ui-compatVersion` attribute as `edge`.
128+
- To make use of the most recent functionality of OpenUI5 we specify the `data-sap-ui-compat-version` attribute as `edge`.
129129

130130
- We configure the bootstrapping process to run asynchronously by setting the `data-sap-ui-async` attribute to "true". This means that the OpenUI5 resources can be loaded simultaneously in the background for performance reasons.
131131

132-
- The `data-sap-ui-onInit` attribute is used in OpenUI5 to specify the name of a module that should be executed when the framework is fully loaded and initialized. This approach provides a way to avoid directly including executable JavaScript code in the HTML file, which improves the security of our application. To specify the name of the module, you need to provide the module name as the value of `the data-sap-ui-onInit` attribute. The module name should be in the format of a module path, which is a dot-separated string that represents the location of the module within the application's folder structure. When specifying the path to a module within the current project, it's important to include the namespace (explained below) and omit the file extension. We specify the `index.ts` script to the `data-sap-ui-onInit` attribute.
132+
- The `data-sap-ui-on-init` attribute is used in OpenUI5 to specify the name of a module that should be executed when the framework is fully loaded and initialized. This approach provides a way to avoid directly including executable JavaScript code in the HTML file, which improves the security of our application. To specify the name of the module, you need to provide the module name as the value of the `data-sap-ui-on-init` attribute. The module name should be in the format of a module path, which is a dot-separated string that represents the location of the module within the application's folder structure. When specifying the path to a module within the current project, it's important to include the namespace (explained below) and omit the file extension. We specify the `index.ts` script to the `data-sap-ui-on-init` attribute.
133133

134-
- The `data-sap-ui-resourceroots` attribute lets you map a namespace to a specific path. We define the `ui5.walkthrough` namespace and map it relative to the location of `index.html`. This way, we tell OpenUI5 core that resources in the `ui5.walkthrough` namespace are located in the same folder as `index.html`.
134+
- The `data-sap-ui-resource-roots` attribute lets you map a namespace to a specific path. We define the `ui5.walkthrough` namespace and map it relative to the location of `index.html`. This way, we tell OpenUI5 core that resources in the `ui5.walkthrough` namespace are located in the same folder as `index.html`.
135135

136136
```html
137137
<!DOCTYPE html>
@@ -143,10 +143,10 @@ We initialize the core modules with the following configuration options:
143143
id="sap-ui-bootstrap"
144144
src="resources/sap-ui-core.js"
145145
data-sap-ui-theme="sap_horizon"
146-
data-sap-ui-compatVersion="edge"
146+
data-sap-ui-compat-version="edge"
147147
data-sap-ui-async="true"
148-
data-sap-ui-onInit="module:ui5/walkthrough/index"
149-
data-sap-ui-resourceroots='{
148+
data-sap-ui-on-init="module:ui5/walkthrough/index"
149+
data-sap-ui-resource-roots='{
150150
"ui5.walkthrough": "./"
151151
}'>
152152
</script>

steps/02/webapp/index-cdn.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
id="sap-ui-bootstrap"
88
src="https://sdk.openui5.org/1.129.0/resources/sap-ui-core.js"
99
data-sap-ui-theme="sap_horizon"
10-
data-sap-ui-compatVersion="edge"
10+
data-sap-ui-compat-version="edge"
1111
data-sap-ui-async="true"
12-
data-sap-ui-onInit="module:ui5/walkthrough/index"
13-
data-sap-ui-resourceroots='{
12+
data-sap-ui-on-init="module:ui5/walkthrough/index"
13+
data-sap-ui-resource-roots='{
1414
"ui5.walkthrough": "./"
1515
}'>
1616
</script>

steps/02/webapp/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
id="sap-ui-bootstrap"
88
src="resources/sap-ui-core.js"
99
data-sap-ui-theme="sap_horizon"
10-
data-sap-ui-compatVersion="edge"
10+
data-sap-ui-compat-version="edge"
1111
data-sap-ui-async="true"
12-
data-sap-ui-onInit="module:ui5/walkthrough/index"
13-
data-sap-ui-resourceroots='{
12+
data-sap-ui-on-init="module:ui5/walkthrough/index"
13+
data-sap-ui-resource-roots='{
1414
"ui5.walkthrough": "./"
1515
}'>
1616
</script>

steps/03/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ All controls of OpenUI5 have a fixed set of properties, aggregations, and associ
5858

5959
### webapp/index.html
6060

61-
We replace the `<div>` tag in our `webapp/index.html` file with a `<body>` tag and assign it the ID `content`. The body tag of the HTML document thus becomes the target node for the text control we defined in the `index.ts` script.
61+
We replace the `<div>` tag in our `webapp/index.html` file with a `<body>` tag and assign it the ID `content`. The body tag of the HTML document thus becomes the target node for the text control we defined in the `index` script.
6262

6363
We also add the `sapUiBody` class, which provides additional theme-dependent styles.
6464

@@ -72,10 +72,10 @@ We also add the `sapUiBody` class, which provides additional theme-dependent sty
7272
id="sap-ui-bootstrap"
7373
src="resources/sap-ui-core.js"
7474
data-sap-ui-theme="sap_horizon"
75-
data-sap-ui-compatVersion="edge"
75+
data-sap-ui-compat-version="edge"
7676
data-sap-ui-async="true"
77-
data-sap-ui-onInit="module:ui5/walkthrough/index"
78-
data-sap-ui-resourceroots='{
77+
data-sap-ui-on-init="module:ui5/walkthrough/index"
78+
data-sap-ui-resource-roots='{
7979
"ui5.walkthrough": "./"
8080
}'>
8181
</script>
@@ -85,7 +85,7 @@ We also add the `sapUiBody` class, which provides additional theme-dependent sty
8585
</html>
8686
```
8787

88-
In the example above, the callback of the `onInit` event is where we now instantiate an OpenUI5 text control.
88+
In the example above, the callback of the `on-init` event is where we now instantiate an OpenUI5 text control.
8989

9090
***
9191

steps/03/webapp/index-cdn.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
id="sap-ui-bootstrap"
88
src="https://sdk.openui5.org/1.129.0/resources/sap-ui-core.js"
99
data-sap-ui-theme="sap_horizon"
10-
data-sap-ui-compatVersion="edge"
10+
data-sap-ui-compat-version="edge"
1111
data-sap-ui-async="true"
12-
data-sap-ui-onInit="module:ui5/walkthrough/index"
13-
data-sap-ui-resourceroots='{
12+
data-sap-ui-on-init="module:ui5/walkthrough/index"
13+
data-sap-ui-resource-roots='{
1414
"ui5.walkthrough": "./"
1515
}'>
1616
</script>

steps/03/webapp/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
id="sap-ui-bootstrap"
88
src="resources/sap-ui-core.js"
99
data-sap-ui-theme="sap_horizon"
10-
data-sap-ui-compatVersion="edge"
10+
data-sap-ui-compat-version="edge"
1111
data-sap-ui-async="true"
12-
data-sap-ui-onInit="module:ui5/walkthrough/index"
13-
data-sap-ui-resourceroots='{
12+
data-sap-ui-on-init="module:ui5/walkthrough/index"
13+
data-sap-ui-resource-roots='{
1414
"ui5.walkthrough": "./"
1515
}'>
1616
</script>

steps/04/webapp/index-cdn.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
id="sap-ui-bootstrap"
88
src="https://sdk.openui5.org/1.129.0/resources/sap-ui-core.js"
99
data-sap-ui-theme="sap_horizon"
10-
data-sap-ui-compatVersion="edge"
10+
data-sap-ui-compat-version="edge"
1111
data-sap-ui-async="true"
12-
data-sap-ui-onInit="module:ui5/walkthrough/index"
13-
data-sap-ui-resourceroots='{
12+
data-sap-ui-on-init="module:ui5/walkthrough/index"
13+
data-sap-ui-resource-roots='{
1414
"ui5.walkthrough": "./"
1515
}'>
1616
</script>

steps/04/webapp/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
id="sap-ui-bootstrap"
88
src="resources/sap-ui-core.js"
99
data-sap-ui-theme="sap_horizon"
10-
data-sap-ui-compatVersion="edge"
10+
data-sap-ui-compat-version="edge"
1111
data-sap-ui-async="true"
12-
data-sap-ui-onInit="module:ui5/walkthrough/index"
13-
data-sap-ui-resourceroots='{
12+
data-sap-ui-on-init="module:ui5/walkthrough/index"
13+
data-sap-ui-resource-roots='{
1414
"ui5.walkthrough": "./"
1515
}'>
1616
</script>

steps/05/webapp/index-cdn.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
id="sap-ui-bootstrap"
88
src="https://sdk.openui5.org/1.129.0/resources/sap-ui-core.js"
99
data-sap-ui-theme="sap_horizon"
10-
data-sap-ui-compatVersion="edge"
10+
data-sap-ui-compat-version="edge"
1111
data-sap-ui-async="true"
12-
data-sap-ui-onInit="module:ui5/walkthrough/index"
13-
data-sap-ui-resourceroots='{
12+
data-sap-ui-on-init="module:ui5/walkthrough/index"
13+
data-sap-ui-resource-roots='{
1414
"ui5.walkthrough": "./"
1515
}'>
1616
</script>

steps/05/webapp/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
id="sap-ui-bootstrap"
88
src="resources/sap-ui-core.js"
99
data-sap-ui-theme="sap_horizon"
10-
data-sap-ui-compatVersion="edge"
10+
data-sap-ui-compat-version="edge"
1111
data-sap-ui-async="true"
12-
data-sap-ui-onInit="module:ui5/walkthrough/index"
13-
data-sap-ui-resourceroots='{
12+
data-sap-ui-on-init="module:ui5/walkthrough/index"
13+
data-sap-ui-resource-roots='{
1414
"ui5.walkthrough": "./"
1515
}'>
1616
</script>

0 commit comments

Comments
 (0)