EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Add a new action() method on FieldTrait

Open fabpot opened this issue 2 years ago • 4 comments

Alternative (more generic) for #4920

fabpot avatar Jul 13 '22 14:07 fabpot

Mini comment: in https://github.com/EasyCorp/EasyAdminBundle/pull/4920#issuecomment-1000479581 suggested the method name rowAction() for clicking a row but in this implementation the user clicks a field (not a row). So the method name rowAction() is a little confusing IMHO, maybe it should be something like action() or linkAction().

But anyways, I hope it gets merged soon.

michaelKaefer avatar Aug 15 '22 21:08 michaelKaefer

I agree with @michaelKaefer, row sounds like we can click anywhere on any column of the row

Seb33300 avatar Oct 31 '22 10:10 Seb33300

Wow, this is a nice feature. Two ideas:

Maybe add an optional $icon argument to action()? Maybe alternatively allow to pass an Action instance as first argument?

mahono avatar Oct 25 '23 18:10 mahono