Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Use third party library (jsTree)

Hello experts,

I am trying to use the opensource component jsTree because the "tree" provided by SAP doesn't gives the option to show the lines to clearly diferentiate nodes but I can't which is weird as it seems pretty simple from my pov.

I've downloaded the required files and added this line in the index.html:

<script type="text/javascript" src="res/jsTree/jstree.min.js"></script>

I've used this to include other own javascript files and worked perfectly, but when I try to call the function $('#arbol').jstree() from a view, I get an error that says:

Uncaught TypeError: $(...).jstree is not a function

I really don't know whats happening because the library is correctly loaded as I checked that on the network tab of the chrome dev tools. I'm afraid this will happen with every single third party library i try to use...

Thanks in advance,

Alex.

Not what you were looking for? View more on this topic or Ask a question