display image in a grid using extjs

前端 未结 7 972
囚心锁ツ
囚心锁ツ 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:20

    This is the better mode, apply a widget column and widget image type like this:

    columns:[
          {text:'Image', xtype:'widgetcolumn', widget:{xtype:'image', src: 'http://www.sencha.com/img/20110215-feat-html5.png'}, dataIndex:'image'}]
    

    on extjs 6

    0 讨论(0)
提交回复
热议问题