Skip to content

Commit f1d07b4

Browse files
authored
Fix PHP syntax error in ActionColumn example
The original code used ->add() inside an array, which is invalid; it now adds the LinkRowAction correctly.
1 parent bd09e25 commit f1d07b4

File tree

1 file changed

+1
-1
lines changed
  • development/components/grid/columns-reference

1 file changed

+1
-1
lines changed

development/components/grid/columns-reference/action.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $actionColumn = new ActionColumn('actions');
2727
$actionColumn->setName('Actions');
2828
$actionColumn->setOptions([
2929
'actions' => [
30-
->add((new LinkRowAction('delete'))
30+
((new LinkRowAction('delete'))
3131
->setIcon('delete')
3232
->setOptions([
3333
'route' => 'admin_custom_route',

0 commit comments

Comments
 (0)