Loading 3rd party libraries in SAPUI5


JavaScript includes various third-party libraries that ease the development while working on SAP UI5 app. You can use following jQuery as below −

jQuery.sap.require("sap.ui.thirdparty.jqueryui.jquery-ui-core");

Other common JavaScript libraries that are in use −

  • MomentJS
  • Loadsh

To load a third party library in SAP UI app project, create a folder “libs”. This folder is used to put third-party libraries −

You can create a file named- moment.js and paste the code that has been copied from third party library website. This code can be included in your UI5 app using the library - index.html.

Updated on: 18-Feb-2020

683 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements