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 dbc157c commit 115d537Copy full SHA for 115d537
src/yajra/Datatables/Html/Builder.php
@@ -275,7 +275,7 @@ public function ajax($attributes)
275
*/
276
public function table(array $attributes = [])
277
{
278
- $this->tableAttributes = $attributes ?: $this->tableAttributes;
+ $this->tableAttributes = array_merge($this->tableAttributes, $attributes);
279
280
return '<table ' . $this->html->attributes($this->tableAttributes) . '></table>';
281
}
@@ -288,7 +288,7 @@ public function table(array $attributes = [])
288
289
public function parameters(array $attributes = [])
290
291
- $this->attributes = $attributes;
+ $this->attributes = array_merge($this->attributes, $attributes);
292
293
return $this;
294
0 commit comments