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

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}" />

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

PFB the link :