EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Feature Request: add edit link to Entity grid row name

Open nbennett25 opened this issue 1 year ago • 0 comments

Short description of what this feature will allow to do: After creating an entity, clicking on a row in the default grid will go to an edit page

Example of how to use this feature ea_grid User creates an entity, and a default CrudController. When loading the main grid, clicking on a row takes the user to the Entity Edit screen.

In code, this could be an addition to the configureFields() method in the Controller class:

public function configureFields(string $pageName): iterable
    {
        return [
            HiddenField::new('id'),
            
            TextField::new('name')
                ->setClickAction(ACTION::EDIT),
              
        ];
    }

or maybe a new configureRow method:

public function configureRow(string $pageName): iterable
    {
        return [
            'setClickAction' => ACTION::EDIT
        ];
    }

nbennett25 avatar May 21 '24 19:05 nbennett25