We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef4035d + 70149a7 commit 423038cCopy full SHA for 423038c
src/resources/views/function.blade.php
@@ -1,5 +1,5 @@
1
window.dtx = window.dtx || {};
2
-window.dtx["%1$s"] = function() {
+window.dtx["%1$s"] = function(opts) {
3
window.LaravelDataTables = window.LaravelDataTables || {};
4
@if(isset($editors))
5
@foreach($editors as $editor)
@@ -10,5 +10,5 @@
10
@endforeach
11
12
@endif
13
- return $("#%1$s").DataTable(%2$s);
+ return window.LaravelDataTables["%1$s"] = $("#%1$s").DataTable($.extend(%2$s, opts));
14
}
0 commit comments