初学者 
menu控件下有item   怎么从menu下 修改他的item控件的属性

解决方案 »

  1.   

    API的menu例子,希望对你有用。 Ext.create('Ext.menu.Menu', {
                width: 100,
                height: 100,
                margin: '0 0 10 0',
                floating: false,  // usually you want this set to True (default)
                renderTo: Ext.getBody(),  // usually rendered by it's containing component
                items: [{                        
                        text: 'regular item 1'        
                },{
                    text: 'regular item 2'
                },{
                        text: 'regular item 3'  
                }]
        });     Ext.create('Ext.menu.Menu', {
                width: 100,
                height: 100,
                plain: true,
                floating: false,  // usually you want this set to True (default)
                renderTo: Ext.getBody(),  // usually rendered by it's containing component
                items: [{                        
                        text: 'plain item 1'    
                },{
                    text: 'plain item 2'
                },{
                        text: 'plain item 3'
                }]
        });