How to view a Youtube video in a Panel in Extjs?

Asked

Viewed 365 times

5

Would you like to display a Youtube video in a Panel on Extjs. Would it be possible? Can someone give me a hint?

  • Which version of Extjs are you using?

  • @Marcoaurélio Version 4.2.1

2 answers

10


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

The panel:

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

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

Seu Xtemplate:

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

I used to show pure html inside a panel;

3

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 it has this extension that solves the question well.

  • Thanks @brunosinister, I’ll check.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.