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
SFDC Lightning 18SFDC Lightning 18 

Hoe to create iframe in lightning component

Hi Guys, Is it possible to embed iframes in lightning component.please let me know any blogs with sample code.
Syed Insha Jawaid 2Syed Insha Jawaid 2
HI SFDC

Yes you can use iframe in lightning component.PFB the sample code :
 
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global">
<aura:attribute name="iframeUrl" type="String" /> 
<iframe src="{!v.iframeUrl}" />
</aura:component>

Cheers!!!
SFDC Lightning 18SFDC Lightning 18
Can please share the full sample code or any example in blogs, its vert helpfull to me, thanks  
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi SFDC

PFB the link : https://www.gaurishgoel.com/2018/05/lightning-component-visualforce-page.html

Cheers!!!