Relation manager - embed in form?
Afternoon - is it possible to embed a relation manager in a form schema - ie tab - reading an old doc regarding Filament v3 plans it looked like it was discussed - was it ever implemented?
6 Replies
don't think that's possible since the relation manager uses tables and tables have their own forms for actions, meaning that it can't be embed into a form because the html spec doesn't allow for nested forms
Yeah that was the issue - there was a mention of using @teleport - part of Livewire3
"@teleport
Livewire v3 will also include a new @teleport Blade directive that will allow you to "teleport" a piece of markup and render it another part of the DOM. This can sometimes help avoid z-index issues with modals and slideouts.
In Filament v2, you are unable to embed the table builder within the form builder. The most useful application for this is putting a relation manager inside a resource form in the admin panel. This is due to a limitation with HTML, as it doesn't allow nested <form> elements.
This new teleport feature will allow us to teleport the nested <form> elements away, and provide you with this feature!"
yea, i think teleport is still buggy in Livewire. not 100% sure though.
Makes sense - sounds like spooky magic!
totally
Do you know if there is any good way to do this yet?