The css class filling logic of the root node of SAP UI5 index.html

Time:2022-11-24

Open any application of the author’s SAP UI5 tutorial, and you can find these css classes of the root node in index.html:

Among them, the three css classes highlighted in the figure below all carry the suffix of desktop:
The css class filling logic of the root node of SAP UI5 index.html

How are these css classes populated?

If it is not a phone or a tablet, then it must be a desktop, and the logic of elimination is adopted.

The css class filling logic of the root node of SAP UI5 index.html

desktop:
The css class filling logic of the root node of SAP UI5 index.html

then callchangeRootCSSClass, set the css class for the index.html root node:

for (var type in SYSTEMTYPE) {
            changeRootCSSClass("sap-" + SYSTEMTYPE[type], !oSystem[SYSTEMTYPE[type]]);
        }

The realization principle is to find window.document.documentElement, and then go toclassNameWrite the value in.

The css class filling logic of the root node of SAP UI5 index.html

The only source of truth about supported browsers and platforms for SAP UI5 is the Product Availability Matrix (PAM), which you can find at SAPwebsitefind it in . SAPUI5 is not a standalone product, so check the PAM for the SAP product you are using SAPUI5 for. See SAP Note 1716423 for more details.

Since SAPUI5 is based on CSS3, HTML5, and ECMAScript 5 (ES5) JavaScript API, only HTML5-capable browsers are supported. In general, the SAPUI5 framework can only support major versions that are also supported by the corresponding platform.

End of support for Microsoft Internet Explorer 11 (IE11) after SAPUI5 1.87. The last long-term maintenance release of SAPUI5 supporting IE11 is SAPUI5 1.84. Versions up to and including SAPUI5 1.87 will continue to support IE11 as long as they are maintained (seehttps://ui5.sap.com/versionov…)。

Products based on SAPUI5 have their own browser support policy and may have dropped support for IE11 even though the underlying maintenance release of SAPUI5 still supports it. When you decide to use a product version, check the Product Availability Matrix (PAM) information published on the SAP website.

Older web applications using the active browser plugin that requires IE11 will not work in the SAP Fiori Launchpad, which relies on a version of SAPUI5 released after support ends. The same is true for integrating SAPUI5 applications into SAP GUI for Windows via the SAP HTML control: your SAP GUI for Windows version needs to be higher than 7.60 to configure browser engines other than the Microsoft Internet Explorer control, see SAP Note 2913405.