Asked by: Hachim Obolenskytechnology and computing web development
Last Updated: 3rd May, 2021
- Load your external java script library in static resource. Goto >> SetUp>> Custom Code >> Static Resources.
- Use <ltng:require> tag to load the Java Script library in lightnig component as follows. <!-- For one js library --> <!--
Click to see full answer.
Subsequently, question is, what is the use of the Aura method tag in lightning? aura method in lightning salesforce. Use aura:method to define a method as part of a component's API. This enables you to directly call a method in a component's client-side controller instead of firing and handling a component event.
Also, how is CDN used in lightning component?
To enable the CDN:
- From Setup, enter Session in the Quick Find box, and then select Session Settings.
- Select the checkbox for “Enable Content Delivery Network (CDN) for Lightning Component framework”.
- Click Save.
How do I use jQuery in Salesforce lightning?
Save the JS file on your computer.
- Step 2 : Upload Data Table zip file + jQuery js file as a static resources in your Salesforce org.
- Step 3 : Use jQuery Data Table on salesforce lightning component.
- Step 4 : Create Apex Controller.
- Step 5 : Create Lightning Component.