F
Filamentβ€’2y ago
arnaudb42

How to add a table to an edit page

Hello everyone, I was looking for a way to customize an edit page, by adding a table at the bottom. I tried with a custom view, and implementing the HasTable interface, but it looks like the "bootedInteractsWithTable" method is never called, so the $table property is never initalized. Is there a way to do it, without rebuilding the form from the beginning ? Thanks !
5 Replies
Dennis Koch
Dennis Kochβ€’2y ago
Did you also use the InteractsWithTable trait? I think it should be possible. A Relation Manager isn't an option?
arnaudb42
arnaudb42OPβ€’2y ago
Yes I did, I set both the Interface and Trait I didn't notice but, just adding those classes, it makes the form disappear without any errors ^^
Dennis Koch
Dennis Kochβ€’2y ago
Maybe you need to start from a Page not EditRecords and implement both InteractsWithTable and InteractsWithForms and follow table builder and form builder docs.
arnaudb42
arnaudb42OPβ€’2y ago
Yes maybe, but I hoped that I wouldn't have to rebuild the form by myself since the editRecords do it by itself πŸ™‚ Thanks Dennis, I will try it that way
Dan Harrin
Dan Harrinβ€’2y ago
i wouldnt do it directly on the page i would add it as a table widget so its a separate thing completely
Want results from more Discord servers?
Add your server