EasyUI Forum
May 02, 2024, 08:55:44 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to add image in grideview in laravel  (Read 4886 times)
dewan
Newbie
*
Posts: 24


View Profile
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!