How do I display a YouTube video on a Panel in ExtJS?

4

I would like to display a YouTube video on a Panel in ExtJS. It would be possible? Can someone give me a hint?

    
asked by anonymous 11.12.2013 / 18:09

2 answers

9

Take a look at the html property of the Panel, that you can use XTemplate, which you can find in this link an example using html.

Panel:

                xtype: 'panel',
                border: false,
                autoScroll: true,

                id:'seupanel',
                html: '\n\
                <table border="3" >\n\
                <tr>\n\
                </tr>
                </table>\n\
                ',

Your Xtemplate:

                var tpl = new Ext.XTemplate('
                    <seu html aqui>
                );
                tpl.overwrite(panel.body, data);

I used to display pure html within a panel;

    
11.12.2013 / 22:31
2

Take a look at this extension:

  

EXTJS and YouTube Integration

     

Pohon.ux.Youtube is package of ExtJS 3.x components which enables integration of youtube videos with your ExtJS application

By default, EXTJS does not have this functionality, but has this extension that solves the issue well.

    
11.12.2013 / 19:45