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
venkyyyvenkyyy 

Want to add the lightning component into dashborad.

Hi all,

I have created a lightning component trhough Developer console along with the lightning app and style too.
Now my question is that how can i add that component into the dashboad (which is into existed dashboard.)

Please guide me.
Thanks in advance.
bob_buzzardbob_buzzard
You can do this but its a few steps.  Your lightning app is URL addressible, so capture the URL from the browser (format is : https://na17.lightning.force.com/<namespace>/<yourapp>.app) - e.g. one of mine is : 

https://na17.lightning.force.com/bblightning/RecordCountsApp.app

Then create a Visualforce page that includes this app as an iframe:
<apex:iframe src="https://na17.lightning.force.com/bblightning/RecordCountsApp.app" />
You can then add this Visualforce page to the dashboard and everything should work as expected - again, here's a screen shot of my record counts component inside a dashboard:

User-added image
 
venkyyyvenkyyy
Thank you bob_buzzard,

It is working fine.  :)