天天看点

EXT多面板组合代码

        Ext.BLANK_IMAGE_URL = "http://www.cnblogs.com/widgets/ext-2.2.1/resources/images/default/s.gif";

        Ext.QuickTips.init();

        Ext.form.Field.prototype.msgTarget = 'qtip';

        com.awd.photosmain = Ext.extend(Ext.Panel,{

                layout:'border'

                ,initComponent: function(){

                    Ext.apply (this,{

                        items:[

                            {region:'center',xtype:'photos'}

                            ,{xtype:'log',region:'east',collapsible:true,width:800,split:true}

                        ]

                    });

                    com.awd.photosmain.superclass.initComponent.apply(this,arguments);

                }

        });

        Ext.reg('photosmain',com.awd.photosmain);

        Ext.onReady(function(){

            var vp = new Ext.Viewport({

                        layout:'fit',

                        items:{xtype:'photosmain'}

            })

继续阅读