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 + "\" />";
}
}];
精彩评论