Activity Forums Salesforce® Discussions What is $Resource global value provider in Salesforce?

  • shariq

    Member
    September 23, 2018 at 11:15 pm

    It lets you reference images, style sheets, and JavaScript code you’ve uploaded in static resources.

    To obtain a reference to a static resource in JavaScript code, use $A.get(‘$Resource.resourceName’).

     

  • Parul

    Member
    September 23, 2018 at 11:45 pm

    The $Label global value provider enables you to access labels stored outside your code. The $Locale global value provider returns information about the current user's preferred locale. The $Resource global value provider lets you reference images, style sheets, and JavaScript code you've uploaded in static resources.

    list of Global value providers in Salesforce:

    $globalID
    $Browser
    $Label
    $Locale
    $Resource

     

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos