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
Did you also use the
InteractsWithTable
trait? I think it should be possible. A Relation Manager isn't an option?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 ^^
Maybe you need to start from a Page not
EditRecords
and implement both InteractsWithTable
and InteractsWithForms
and follow table builder and form builder docs.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
i wouldnt do it directly on the page
i would add it as a table widget
so its a separate thing completely