display image in a grid using extjs

前端 未结 7 1074
囚心锁ツ
囚心锁ツ 2020-12-30 08:19

I am new to extjs. I want to display icon images for each grid elements. can you please help me anybody?

I am getting the image path from an xml file.

My cod

7条回答
  •  情歌与酒
    2020-12-30 09:14

    Simple

    In his Json pass the string with < img src = " " />

    after dataIndex :

    fields:[
    
    {name: 'images', type: 'string'}
    
    ]
    
    {
    
    text: 'images',
    
    dataIndex: 'images'
    
    }
    

提交回复
热议问题