loio |
---|
9feb96da02c2429bb1afcf6534d77c79 |
view on: demo kit nightly build | demo kit latest release
Compatibility version flags were introduced to allow applications to react to incompatible changes in OpenUI5.
The concept of compatibility versions has been abandoned as of OpenUI5 version 1.28. Therefore, no new compatibility version flags will be introduced in the future. If you start building a new application, please set
data-sap-ui-compat-version="edge"
on your OpenUI5 bootstrap tag.This ensures that the newest behavior of all features is applied. Other version definitions, including the default value, are deprecated.
As described in the compatibility rules, changes to OpenUI5 features are compatible; see Compatibility Rules for more information. In some cases, however, it used to make sense to change the behavior of a feature, for example, in order to change the default values or to use an optimized implementation. These changes could result in incompatibilities.
We recommend adopting new feature versions as soon as possible.
The compatibility version configuration worked as follows:
-
A version flag was introduced if a feature change was incompatible.
-
The version flag had to be defined in the OpenUI5 bootstrap tag, either globally (via
data-sap-ui-compat-version
) or individually for each feature (for exampledata-sap-ui-compat-version-xyz
). Example withcompat-version "1.18"
:<script id="sap-ui-bootstrap" type="text/javascript" src="resources/sap-ui-core.js" data-sap-ui-theme="sap_horizon" data-sap-ui-libs="sap.m" data-sap-ui-compat-version="1.18" data-sap-ui-compat-version-xyz="1.16" > </script>
-
If no compatibility version is defined, the default behavior of the feature applies.
-
If an explicit version is specified, the behavior of the specified version is applied (deprecated).
-
If
edge
is specified as the compatibility version, the newest behavior of the feature is applied. -
A fallback mechanism is implemented. The following table is an example of possible configuration options for feature "xyz":
data-sap-ui-compat-version
data-sap-ui-compat-version-xyz
Default feature xyz
Resulting compatibility version
--
--
1.14
1.14
1.16
(deprecated)
--
1.14
1.16
--
1.16
1.14
1.16
1.18
(deprecated)
1.16
1.14
1.16
edge
..
1.14
1.18
OpenUI5 supports the following compatibility version flags:
Flag |
Description |
---|---|
|
The Default value: 1.14 |
|
-- |
|
-- |
|
-- |
|
By default, the content area of Default value: 1.14 |
Related Information