开发者

Storing image in dojo 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜