Display icon on grid instead of button (left or right)

Hi all,

is there a way to display an icon on the grid instead of the button.
Example: I want the pencil icon instead the button with icon and text “Edit” (like old style).
Following question would be, can I choose the icon set to be on the left or right side of the grid.

Hello @marneu and welcome to our forums :hugs:

You can have only icon by adding the configuration:
from:

  'action_button_type' => 'icon-text',

to:

  'action_button_type' => 'icon',

and you can change the direction for the buttons from left to right by changing the configuration:

'actions_column_side' => 'left',

to:

'actions_column_side' => 'right',

Let me know if that worked for you,

Regards
Johnny

Sounds good, does this apply for the standard buttons (read/edit/clone etc.) or do i have to build/override myself)?
Answer myself: stupid question i.e app/Config/GroceryCrud.php

Thank you, solved my question :smiley:

1 Like