Compatibility version flags allow applications to react to incompatible changes in OpenUI5.
As described in the compatibility rules, changes to OpenUI5 features are compatible, see Compatibility Rules. In some cases, however, it may make sense to change the behavior of a feature, for example, to change the default values or to use an optimized implementation and these changes may lead to incompatibilities.
The compatibility version configuration works as follows:
The version flag has to be defined in the OpenUI5 bootstrap tag either globally (data-sap-ui-compatVersion or individually for each feature (for example data-sap-ui-compatVersion-xyz):
#!html<script id="sap-ui-bootstrap" type="text/javascript" src="resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.ui.commons" data-sap-ui-compatVersion="1.18" data-sap-ui-compatVersion-<featureName>="1.16" > </script>
A fallback mechanism is implemented. The following table shows the possible configuration options for feature "xyz":
data-sap-ui-compatVersion | data-sap-ui-compatVersion-xyz | Default feature xyz | Resulting compatibility version |
---|---|---|---|
-- | -- | 1.14 | 1.14 |
1.16 | -- | 1.14 | 1.16 |
-- | 1.16 | 1.14 | 1.16 |
1.18 | 1.16 | 1.14 | 1.16 |
edge | .. | 1.14 | 1.18 |
OpenUI5 supports the following compatibility version flags:
Flag | Description |
---|---|
data-sap-ui-compatVersion-flexBoxPolyfill |
The flexBoxPolyfill for Internet Explorer 9 was deprecated in 1.16 due to functional deficiencies. When the compatibility version is 1.16 or higher, the polyfill is not active at all. Otherwise, the buggy implementation behaves as before, so that it still works in existing applications. Default value: 1.14 |
data-sap-ui-compatVersion-sapMeTabContainer |
The TabContainer was deprecated in 1.15. When the compatibility version is 1.16 or higher, an error is logged to the console indicating that sap.m.IconTabBar should be used instead. Default value: 1.14 |
data-sap-ui-compatVersion-sapMeProgessIndicator | -- |
data-sap-ui-compatVersion-sapMGrowingList | -- |
data-sap-ui-compatVersion-sapMListAsTable | -- |
data-sap-ui-compatVersion-sapMDialogWithPadding |
By default, the content area of Dialog had paddings. To make the padding consistent with other popups, the padding is removed for compatibility versions 1.16 or higher. If the padding is still needed inside the content area of Dialog, add the CSS style class sapUiPopupWithPadding to Dialog by calling the addStyleClass function. Default value: 1.14 |