Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit70149a7

Browse files
committed
Add function argument to override the default options from php scripts.
Add LaravelDataTables table variable.
1 parentef4035d commit70149a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/resources/views/function.blade.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
window.dtx = window.dtx || {};
2-
window.dtx["%1$s"] = function() {
2+
window.dtx["%1$s"] = function(opts) {
33
window.LaravelDataTables = window.LaravelDataTables || {};
44
@if(isset($editors))
55
@foreach($editorsas$editor)
@@ -10,5 +10,5 @@
1010
@endforeach
1111
@endforeach
1212
@endif
13-
return$("#%1$s").DataTable(%2$s);
13+
returnwindow.LaravelDataTables["%1$s"] = $("#%1$s").DataTable($.extend(%2$s, opts));
1414
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp