EasyUI Forum

General Category => General Discussion => Topic started by: dewan on November 24, 2018, 08:07:12 AM



Title: How to add image in grideview in laravel
Post by: dewan on November 24, 2018, 08:07:12 AM
Hi
My table data contain a image path is it possible to show image in cell  . cell data is http://192.168.0.100/storage/catalog/test.jpg  i would like to show image in cell with this path.

Thank you


Title: Re: How to add image in grideview in laravel
Post by: stworthy on November 26, 2018, 05:58:42 PM
Define the 'formatter' function on a column to display the image.
Code:
formatter:function(value,row){
return '<img ...>';
}

The 'formatter' example is available from https://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=material-teal&dir=ltr&pitem=Format%20DataGrid%20Columns&sort=asc