Creating a custom Action
There are certain cases when built-in action types are not enough.
All you need to do is create your own action template and register it
for the sylius_grid
.
In this example, we will specify the action button's icon to be mail
and its
colour to be purple
inside the template.
Now configure the new action's template like below inconfig/packages/sylius_grid.yaml
:
From now on, you can use your new action type in the grid configuration!
Let's assume that you already have a route for contacting your suppliers, then you can configure the grid action:
Last updated
Was this helpful?