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.
1 parent 1a32419 commit dd85b17Copy full SHA for dd85b17
src/Html/Builder.php
@@ -118,7 +118,17 @@ public function generateScripts()
118
*/
119
public function generateJson()
120
{
121
- $args = array_merge(
+ return $this->parameterize($this->getOptions());
122
+ }
123
+
124
+ /**
125
+ * Get DataTable options array.
126
+ *
127
+ * @return array
128
+ */
129
+ public function getOptions()
130
+ {
131
+ return array_merge(
132
$this->attributes, [
133
'ajax' => $this->ajax,
134
'columns' => $this->collection->map(function (Column $column) {
@@ -129,8 +139,6 @@ public function generateJson()
139
})->toArray(),
140
]
141
);
-
- return $this->parameterize($args);
142
}
135
143
136
144
/**
0 commit comments