function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aks0011aks0011 

$Lightning.use(); Method?

Hi, 

If anyone has any idea that how can we pass a parameter in $Lightning.use(); method and how it works then please let me know .

thanks in advance .... :)
 
Suraj GharatSuraj Gharat
Hi aks0011,

As per documentation it takes two parameters:
  1. Fully qualified name of the lightning app whose dependancy components you want to create into your VF page.
  2. Callback function, here we get the opportunity to write code that creates and adds lightning components into VF page
You may refer the doc here - https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_visualforce.htm (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_visualforce.htm" target="_blank)