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:"<img src='img/smallYellow.png' width='17' height='13'/>",
icon:'img/smallYellow.png',
erisiko:'Yellow'
},{
renderer:"<img src='img/smallGreen.png' width='17' height='13'/>",
icon:'img/smallGreen.png',
erisiko:'Green'
},{
renderer:"<img src='img/smallRed.png' width='17' height='13'/>",
icon:'img/smallRed.png',
erisiko:'Red'
}]
});