File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
development/components/grid/columns-reference Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ For more info about possible actions see [Actions reference][actions-reference].
2222use PrestaShop\PrestaShop\Core\Grid\Column\Type\Common\ActionColumn;
2323use PrestaShop\PrestaShop\Core\Grid\Column\ColumnCollection;
2424use PrestaShop\PrestaShop\Core\Grid\Action\Row\Type\LinkRowAction;
25+ use PrestaShop\PrestaShop\Core\Grid\Action\Row\RowActionCollection;
2526
2627$actionColumn = new ActionColumn('actions');
2728$actionColumn->setName('Actions');
2829$actionColumn->setOptions([
29- 'actions' => [
30+ 'actions' => (new RowActionCollection())
3031 ->add((new LinkRowAction('delete'))
3132 ->setIcon('delete')
3233 ->setOptions([
@@ -36,7 +37,6 @@ $actionColumn->setOptions([
3637 'confirm_message' => 'Delete selected item?',
3738 ])
3839 )
39- ],
4040]);
4141
4242$columns = new ColumnCollection();
You can’t perform that action at this time.
0 commit comments