Extjs商店监听器

时间:2019-04-03 14:46:27

标签: extjs

我的商店功能在extjs 6.0上有效地工作,但是当迁移到extjs 6.7时,其显示错误

        var store = Ext.create('Ext.data.Store',{
            model: 'User',
            proxy: {
                type: 'ajax',
                url : '../ROOT/customHeader/configs/customHeaderConfig.json',
                reader: 
                {
                    type: 'json',
                    rootProperty: "custom"
                }
            },
            autoLoad:true,
            listeners : {
                load : function(thisObj, records){
                    var logo_src = records[0].get("viewer_logo_src");
                    panObj.getComponent('header_toolbar').getComponent('headerLogo').setSrc(logo_src);

                }
            }
        });

0 个答案:

没有答案
相关问题