Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions development/components/grid/columns-reference/action.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ For more info about possible actions see [Actions reference][actions-reference].
use PrestaShop\PrestaShop\Core\Grid\Column\Type\Common\ActionColumn;
use PrestaShop\PrestaShop\Core\Grid\Column\ColumnCollection;
use PrestaShop\PrestaShop\Core\Grid\Action\Row\Type\LinkRowAction;
use PrestaShop\PrestaShop\Core\Grid\Action\Row\RowActionCollection;

$actionColumn = new ActionColumn('actions');
$actionColumn->setName('Actions');
$actionColumn->setOptions([
'actions' => [
'actions' => (new RowActionCollection())
->add((new LinkRowAction('delete'))
->setIcon('delete')
->setOptions([
Expand All @@ -36,7 +37,6 @@ $actionColumn->setOptions([
'confirm_message' => 'Delete selected item?',
])
)
],
]);

$columns = new ColumnCollection();
Expand Down