Tab content

Hi,
I'd like to know if it is possible to set an <iframe> as a content
of a Tab Item in Javascript Tab control.
Thank You.
Alberto.

3 Replies

SK Satheesh Kumar Balasubramanian Syncfusion Team September 7, 2021 06:07 AM UTC

Hi Alberto, 
  
Thanks for using Syncfusion Products. 
  
We have validated your reported query "is possible to set an <iframe> as a content of Tab Item in Javascript Tab control" and prepared sample to achieve your requirement. 
  
  
index.ts:   
let tabObjTab = new Tab({ 
  items: [ 
    { 
      header: { text: 'Iframe' }, 
      content: '#iframe' 
    } 
  ] 
}); 
//Render initialized Tab component 
tabObj.appendTo('#tab_default'); 
  
index.html:   
              <div id='iframe' style='display: none'> 
                    <iframe src="https://ej2.syncfusion.com/demos/#/material/tab/default.html" width="700" height="500"> 
                    </iframe> 
                </div> 
  
Kindly try the above sample and let us know if this meets your requirement. 
  
Regards, 
Satheesh Kumar B 



AM Alberto Monteverdi September 8, 2021 09:19 PM UTC

Hi,

Yes, it works fine.

Thank You very much.

Alberto.



NR Nevitha Ravi Syncfusion Team September 9, 2021 09:02 AM UTC

Hi Alberto, 

You are welcome..! please get back to us if you need any further assistance. 

Regards, 
Nevitha   


Loader.
Up arrow icon