EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 08, 2024, 03:52:38 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
How to add image in grideview in laravel
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to add image in grideview in laravel (Read 5785 times)
dewan
Newbie
Posts: 24
How to add image in grideview in laravel
«
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
Re: How to add image in grideview in laravel
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...