New answers tagged

0

I couldn't quite figure out how to mark this question as a duplicate. But I suspect the answer you need is on this answer. For visibility here: Salesforce-sas gave the answer: Firstly, if you are absolutely sure that you cannot get the needed functionality using standard Javascript and SLDS classes, only then you should go for Using Third-Party JavaScript ...


0

Have you tried to loadScript call using async connectedCallback as per below? async connectedCallback() { try { await loadScript(this, `${jQuery_bundle}/jquery.min.js`); }); } catch (error) { console.log(error); } }


0

The issue that you are facing is that LWC is loading libraries within your specific component and isolates it from outside. So if you try to use it inside the component, you'll be able to write something like $('input'), but window.jQuery in developer console will produce undefined. Hopefully, this helps. UPDATE: You can access $ after callback on jQuery ...


Top 50 recent answers are included