Loading 3rd party libraries in SAPUI5

SAPSAP UI5

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.

raja
Published on 28-Dec-2017 10:48:56
Advertisements