Hi guys,
I want to show image in column using URL. I have added URL for JPG image, but I don`t know how to show it inside of column cell.
Please help me with some advise
You can use the renderer function to render anything.
Please take a look at this link:
https://bryntum.com/docs/gantt/api/Grid/column/Column#config-renderer
And to render HTML elements you need to set https://bryntum.com/docs/gantt/api/Grid/column/Column#config-htmlEncode to true
Here is a code sample of how you can achieve it:
{ text : 'Image', field : 'image', htmlEncode : false, renderer(event) {
return event.value && `<img src="${event.value}" />`
} },
If you want to maintain the height of the image you can set https://bryntum.com/docs/gantt/api/Grid/column/Column#config-autoHeight to true.
Good Luck ,
Tasnim