Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 934 Bytes

nojquery-variant-for-bootstrapping-91f1dd0.md

File metadata and controls

24 lines (16 loc) · 934 Bytes

noJQuery Variant for Bootstrapping

The noJQuery variant supports bootstrapping for an application that already integrates jQuery or uses a different jQuery version than SAPUI5.

In this variant, you include the resources/sap-ui-core-nojQuery.js file in your HTML page. Make sure that jQuery and jquery-ui-position have been loaded beforehand. The following code snippet shows an example:

    <!-- include some jQuery version -->
    <script src="my-jQuery-min.js" ></script>

    <!-- application does not have its own jquery-ui-position, so it might use the one from SAPUI5 -->
    <script src="resources/sap/ui/thirdparty/jqueryui/jquery-ui-position.js" ></script>

    <!-- now booting SAPUI5 -->
    <script 
            id="sap-ui-bootstrap"            
            src="resources/sap-ui-core-nojQuery.js" 
            data-sap-ui-libs="sap.m">
    </script>