datatable
datatable
This is my function
$(function() {
$('#example').DataTable({
processing: true,
serverSide: true,
paging: false,
scrollY: 400,
select:true,
ajax: '{!! route('datatables.data') !!}',
columns: [
{ data: 'id', name: 'id' },
{ data: 'name', name: 'name' },
{ data: 'lname', name: 'lname' },
{ data: 'fname', name: 'fname'},
{ data: 'grandfather', name: 'grandfather'},
{ data: 'examscore', name: 'examscore'},
{ data: 'uname', name: 'uname'},
{ data: 'facultyname', name: 'facultyname'},
{ data: 'wing', name: 'wing'},
{ data: 'room', name: 'room'}
]
});
});
I want display an image as well, How should I do it?
Answers
I don't really understand I'm afraid. Where do you want to show the image? Is the URL in the JSOn data that is loaded?
Allan