File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ use Yajra\DataTables\Services\DataTable;
1515

1616
class UsersDataTable extends DataTable
1717
{
18-
protected $actions = ['print', 'excel', 'myCustomAction'];
18+
protected array $actions = ['print', 'excel', 'myCustomAction'];
1919

2020
public function html()
2121
{
2222
return $this->builder()
2323
->columns($this->getColumns())
24-
->parameters([
25-
'dom' => 'Bfrtip',
26-
'buttons' => ['print', 'excel', 'myCustomAction'],
24+
->dom('Bfrtip')
25+
->buttons([
26+
'print',
27+
'excel',
28+
'myCustomAction',
2729
]);
2830
}
2931

0 commit comments

Comments
 (0)