• #37950
    Salesforce | Aman Aman #4
    Forcetalks

    Can we include external JavaScript/CSS libraries in Salesforce Components?

    Can we include external JavaScript/CSS libraries in Salesforce Components?

     

    #37951
    Salesforce | shariq shariq #1
    Forcetalks

    It is possible to use custom CSS and JAvascriipt in the Lightning component

    #38092
    Salesforce | Parul Parul #2
    Forcetalks

    <ltng:require styles=”/resource/firstcss[,/resource/secondcss]”
    scripts=’/resource/javascript1.js,[/resource/javascript2.js]’ afterScriptsLoaded=”
    {!c.firstLoadFunction}” />

    Explanation of above example:
    1. style – access multiple CSS files with comma separated. Load files from left to right.
    2. script – access multiple javascript files with comma separated. Load files from left to right.
    3. afterScriptsLoaded – to provide javascript function to notify when all javascript files are loaded.

Viewing 3 posts - 1 through 3 (of 3 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?