display image in a grid using extjs

前端 未结 7 1059
囚心锁ツ
囚心锁ツ 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 09:10

    for displaying icon for your first name column do following changes

    {header: "First Name", width: 120, renderer:first, dataIndex: 'first', sortable: true},
    

    make function as

    function first(val)
    {
    return '';
    }
    

提交回复
热议问题