Custom grid structure in filament
I need to make some structural changes to the page at /admin/models/{model}/edit. This page contains a form to edit the model and uses the getRelations method to manage model relationships. Please refer to the attached photo for clarification.
14 Replies
Why not just use the Grid component?
https://filamentphp.com/docs/3.x/forms/layout/grid
i cant use grid here. i have two methods.
form and getRelations.
each of them are importing their content in separate div tag
If you use Grid you can pass a parameter in i.e. contenxt == view do X context == edit do Y
can you show me? because i have searched for grid but i found nothing.
Grid is a field of the form.
I know that and this is working in this state. but i need to apply grid column in $form and $relations.
What?
form and getRelations has separate content that insert below each other.
Correct and it always will
i cant apply grid for form and getRelations
So you want to merge the relationship manager and the form, you can't do that
hmmmm
you understand what i need.
You need to create a custom livewire component which has tables and accepts an id for the data being loaded
that would then allow you to render a table anywhere
thanks for your help
i will try that.