Easyadminbundle: [3.0] Display association as table

Created on 19 Jun 2020  路  3Comments  路  Source: EasyCorp/EasyAdminBundle

Short description of what this feature will allow to do:
Show related entities with a table, based on the target entities CrudController configureFields, with possible overrides (e.g. hide / add columns, default sort, ..).

Example of how to use this feature
Maybe we can add it as an option for AssociationField, similar to renderAsBadges for ChoiceField - or add a separate Field type so we can have cleaner options for this.

Most helpful comment

I have implemented a basic version of this, however the embedded table's sort and pagination links obviously don't work by default. Not sure if we want to use AJAX here to reload the "frame", or prefix the url parameters for the embedded table's parameters.

I'll try and get a WIP PR for it sometimes this week, maybe someone has good suggestions for the remaining issues 馃檪

Preview

CleanShot 2020-07-09 at 17 20 40@2x

All 3 comments

I have implemented a basic version of this, however the embedded table's sort and pagination links obviously don't work by default. Not sure if we want to use AJAX here to reload the "frame", or prefix the url parameters for the embedded table's parameters.

I'll try and get a WIP PR for it sometimes this week, maybe someone has good suggestions for the remaining issues 馃檪

Preview

CleanShot 2020-07-09 at 17 20 40@2x

@seb-jean PR is open now, if you want to check it out 馃檪

I would love to use this. Is there any way that i can use this? Can anyone will help me with this.

Was this page helpful?
0 / 5 - 0 ratings