Problem when using multi filter select
Problem when using multi filter select
MintAces
Posts: 7Questions: 3Answers: 0
I tried to use this: https://www.datatables.net/examples/api/multi_filter_select.html
But when i put it in my code, my datatables won't load data anymore
My datatables
var table = $('#candidateTable').DataTable({
ajax: {
url: 'http://localhost:8084/api/candidates/all',
dataSrc: ''
},
"columnDefs": [
{"targets": 0, "data": "idCandidate", "width": "8%"},
{"targets": 1, "data": "name", "width": "20%"},
{"targets": 2, "data": "email", "width": "22%"},
{"targets": 3, "data": "phone", "width": "13%"},
{"targets": 4, "data": "universityName","width": "17%"},
{"targets": 5, "data": "skill", "width": "15%"},
{"targets": 6, "data": "idCandidate", "width": "5%", "orderable": false,
"render": function (data) {
return '<a href="editCandidate/'+data+'"><i class="fas fa-fw fa-info-circle"></i></a>'
}
}
]
});
This discussion has been closed.
Answers
Sorry, i solved this problem
I forgot ',' before initComplete