-
-
Notifications
You must be signed in to change notification settings - Fork 858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to trigger reload #3179
Comments
Just call the draw event: LaravelDataTables['table-id'].draw() |
I have tried, but |
here is my code
|
It seems you're using vite, inline scripts should be mostly a module type. You can also add the document ready if needed. <script type="module">
LaravelDataTables['productcategories-table'].draw();
</script> |
@yajra please help me |
I think you need to call the script when dom is ready. The complete script should be something like: $(function() {
$('.btn-reload').on('click', function() {
LaravelDataTables['productcategories-table'].draw();
});
}) |
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
@push('scripts') {{ $dataTable->scripts(attributes: ['type' => 'module']) }} @endpush
I have an ajax action, after complete I want to reload the datatable. how to call datatable ajax reload?
The text was updated successfully, but these errors were encountered: