From 5ce405d7b3def6d5fec1b84cf2c113cf37c08634 Mon Sep 17 00:00:00 2001 From: stlgaits Date: Mon, 16 Dec 2024 20:42:28 +0100 Subject: [PATCH] [Docs] Custom action fix typos --- docs/grid/custom_action.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/grid/custom_action.md b/docs/grid/custom_action.md index 62bd3b11..d646f11f 100644 --- a/docs/grid/custom_action.md +++ b/docs/grid/custom_action.md @@ -1,4 +1,4 @@ -Creating custom Action +Creating custom Actions ====================== There are certain cases when built-in action types are not enough. @@ -6,8 +6,8 @@ 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`. +In this example, we will specify the action button's icon to be `mail` and its +colour to be `purple` inside the template. ```twig {% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} @@ -17,7 +17,7 @@ colour to be `purple`. {{ buttons.default(path, action.label, null, 'mail', 'purple') }} ``` -Now configure the new action's template like below in the +Now configure the new action's template like below in `config/packages/sylius_grid.yaml`: ```yaml @@ -28,7 +28,7 @@ sylius_grid: contactSupplier: "@App/Grid/Action/contactSupplier.html.twig" ``` -From now on you can use your new action type in the grid configuration! +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: