Img Datatable with ajax in laravel
Img Datatable with ajax in laravel
Arivul
Posts: 3Questions: 2Answers: 0
Hi!, im new using this library and i need to display and img from my public folder.
I read the column render doc but i dont really understand.
Could someone help me this is my ajax code:
$(document).ready(function(){
listar();});
var listar = function (){
var table = $('#productos').DataTable({
"processing": true,
"serverSide": true,
"ajax": "ajaxProducto",
"columns":[
{data:'id'},
{data:'nombre'},
{data:'stock'},
{data:'imagen'},
],
"language": idioma_esp});}
the data:imagen is where i store the name of the img.
Hope someone can help me.
Thanks.
This discussion has been closed.