1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    19
    Vote Rating
    0
    Megajayeultra is on a distinguished road

      0  

    Default Unanswered: Media Element Inside list item help!!!!!!!!!!!!!!!!

    Unanswered: Media Element Inside list item help!!!!!!!!!!!!!!!!


    I am building a nested list with media items inside each element and I do not know where I am going wrong.
    Some one please help me. My code is

    Code:
    Ext.define('ListItem', {
        extend: 'Ext.data.Model',
       
      requires: [
         'Ext.TitleBar',  
          'Ext.Video'
       ],
       config: {
          xtype:'container',
    	  fields: ['text'],  
          title: 'Device',
    	  iconCls: 'action',
                  items: {
                     docked: 'top',
                     xtype: 'titlebar',
                     title: 'Cloud Content',
                  },
    	}
    	});
    
    var treeStore = Ext.create('Ext.data.TreeStore', {
        model: 'ListItem',
        defaultRootProperty: 'items',
        root: {
            items: [
                {
                    text: 'Audio',
                    items: [
                        {
                            text: 'Water',
                            items: [
                                { text: 'Still', leaf: true },
                                
                            ]
                        },
                        
                    ]
                },
                {
                    text: 'Videos',
                    items: [
                        { text: 'Nuts', leaf: true },
                        
                    ] 
               },
    		   
    		   {
                    text: 'Ebooks',
                    items: [
                        { text: 'Nuts', leaf: true },
                        
    					{
                        xtype:'video',
                        url:['http://www.youtube.com/watch?v=_cy8vpVS1Iw&feature=related'],
                        loop:true,
                        }
                    ] 
               }
            ]
        }
    });
    
    Ext.create('Ext.NestedList', {
        fullscreen: true,
        store: treeStore
    });

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,653
    Answers
    618
    Vote Rating
    402
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Where is Ext.video coming from?
    xtype:'video',

    What is the problem you are facing .. the link does not load?

    Code:
    xtype: 'box',
    autoEl: {
        tag: 'a',
        href: 'javascript:;',
        html: 'LINK'
    },
    listeners: {
        click: {
            element: 'el',
            fn: function() {
                var myWin = Ext.create("Ext.window.Window", {
                    title: 'HTML Window',
                    modal: true,
                    html: '<iframe src="http://www.sencha.com" width="100%" height="100%" ></iframe>',
                    width: 700,
                    height: 500
                });
                myWin.show();
            }
        }
    }​
    Scott.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar