ExtJS 4 组件扩展

Ext.define('Ext.window.myWindow', {
    extend: 'Ext.window.Window',
    alias: 'widget.myWindow',
    config: {
        width: 640,
        closeAction: 'hide',
        height: 400,
        resizable: false,
        shadow: true,
        modal: true,
        closable: true,
        plain: true,
        border: false,
        bodyBorder: false
    },
    constructor: function (cnfg) {
        this.callParent(arguments);
        this.initConfig(cnfg);
    }
});

 

posted @ 2012-03-02 15:27  lzone6  阅读(459)  评论(0)    收藏  举报