Extjs4.1中图片数据源

        var jdPicStore = Ext.create('Ext.data.Store',{
             fields: ['icon','evalValue'],
                data: [
                    {
                        icon:'img/close.gif',
                        evalValue:null
                    },
                    {
                       icon:'img/smallGreen.png',
                       evalValue:'green'
                   },
                   {
                       icon:'img/smallYellow.png',
                       evalValue:'yellow'
                   },
                   {
                       icon:'img/smallRed.png',
                       evalValue:'red'
                   }
                ]
        });

 

 

           var picStore4Erisiko = Ext.create('Ext.data.Store',{
                fields: ['renderer','erisiko','icon'],
                data: [{
                      renderer:"",
                      icon:'img/smallYellow.png',
                      erisiko:'Yellow'
                },{
                      renderer:"",
                      icon:'img/smallGreen.png',
                      erisiko:'Green'
                },{
                      renderer:"",
                      icon:'img/smallRed.png',
                      erisiko:'Red'
                }]
            });

转载于:https://www.cnblogs.com/renpei/p/5562900.html

你可能感兴趣的:(Extjs4.1中图片数据源)