You need to sign in to do that
Don't have an account?
Kachmar Sofiya
LWC loadScript - is there a way to set attributes before script load?
In order to load an external script into LWC loadScript should be used: https://developer.salesforce.com/docs/component-library/bundle/lightning-platform-resource-loader/documentation
Iøm facing the problem as I need to set data attributes on the script tag for the script to be loaded correctly. Any suggestions?
Iøm facing the problem as I need to set data attributes on the script tag for the script to be loaded correctly. Any suggestions?
Check below references.
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.js_third_party_library
https://www.salesforcecodecrack.com/2019/03/how-to-import-third-party-libraries-in.html
Thanks,