Skip to content

Commit f2adb9e

Browse files
authored
docs: add actions property type
fix yajra/laravel-datatables#2973
1 parent 04f0bc2 commit f2adb9e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎buttons-custom.md

+6-4
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)