Creating 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 the template we will specify the button's icon to be mail
and its colour to be purple
.
Now configure the new action's template like below in the config/packages/sylius_grid.yaml
:
config/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