Replies: 1 comment
-
Just access the ajax json using the api. $(function() {
var oTable = $('#categoryTable').DataTable({
processing: true,
serverSide: true,
ajax: {
url: '{!! route('category.data') !!}',
data: function (d) {
d.name = $('input[type="search"]').val();
}
},
columns: [
{data: 'cat_name'},
{data: 'action', name: 'action', orderable: false, searchable: false}
]
drawCallback: function() {
console.log(oTable.ajax.json())
}
});
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem statement
I want to create a dropdown list using datatable data which are loaded for making datatable, simply I want to reuse it
Code
Snipshot
System details
-Operating System: Window 10 on xampp
-PHP Version: 7.4.9
-Laravel Version: 5.2.
-Laravel-Datatables Version: 7.0
Beta Was this translation helpful? Give feedback.
All reactions