Closed vincent-treco closed 5 months ago
It seems like your editor scripts did not load properly. Does this exists?
<script src="{{ mix('js/dataTables.editor.js') }}"></script>
Also, I think you should use asset since it's not compiled by mix.
<script src="{{ asset('js/dataTables.editor.js') }}"></script>
Ohhhh, thanks !
mix.js('resources/js/dataTables.editor.js', 'public/js'); // datatable
i mixed my files with the js function so the file was compiled
mix.copy('resources/js/dataTables.editor.js', 'public/js'); // datatable
with a copy i do not have the error anymore
Without your response i would never have thought of that
But now, i have a second issue. The datatable is ok and the buttons too. But when i try to update a line, it stays the same
Hello,
if you try to update a line, is the line updated in the database and only the new value isn't updated in the view or is the value not updated?
Wow! Thank you - after following documentation here https://yajrabox.com/docs/laravel-datatables/master/quick-starter I could not get it to work. Using COPY in mix managed to get it working! Thank you!
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.
This issue was closed because it has been inactive for 7 days since being marked as stale.
Hello, I try to use editor datatable trial fot my work. I follow this tuto but I can't get the editor buttons to work. I got this error when i add the editor function in the html function on my ClientsDataTable : $.fn.dataTable.Editor is not a constructor
See my code
index.blade.twig :
ClientsDatatable :
ClientDataTableEditor.php :
I installed all dependencies buth this code doesn't want to work ! If someone can help me, thank you