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 2e2adf7 + daa72ea commit 3eb6554Copy full SHA for 3eb6554
src/Services/DataTable.php
@@ -18,7 +18,14 @@ abstract class DataTable implements DataTableButtons
18
* @var string
19
*/
20
protected $printPreview = 'datatables::print';
21
-
+
22
+ /**
23
+ * Name of the dataTable variable.
24
+ *
25
+ * @var string
26
+ */
27
+ protected $dataTableVariable = 'dataTable';
28
29
/**
30
* List of columns to be exported.
31
*
@@ -118,7 +125,7 @@ public function render($view, $data = [], $mergeData = [])
118
125
return app()->call([$this, $action]);
119
126
}
120
127
121
- return view($view, $data, $mergeData)->with('dataTable', $this->getHtmlBuilder());
128
+ return view($view, $data, $mergeData)->with($this->dataTableVariable, $this->getHtmlBuilder());
122
129
123
130
124
131
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments