开发者

Storing image in dojo datagrid

开发者 https://www.devze.com 2023-04-02 10:40 出处:网络
How to add an image to Dojo datagrid columns? I have different css classes for different images. How 开发者_开发问答to make it display in datagrid?

How to add an image to Dojo datagrid columns?

I have different css classes for different images. How 开发者_开发问答to make it display in datagrid? How to store image in datastore?


I would try with a formatter in the layout structure:

var layout = [
   {
       field: 'image', name: ' ', 
       width: 'auto', formatter: function(value) { 
           var src = imageURL; 
           return "<img src=\"" + src + "\" />"; 
       } 
    }];
0

精彩评论

暂无评论...
验证码 换一张
取 消