Widget On Relation Manager
Hi, may i know , is that possible to add widget on relation manager ? if yes . does the way is same as normal register on resource ?
4 Replies
I think there should be a
getHeaderWidgets()
or similar method.Curious if theres an update to this? I can get the widget to display in my resource, but not in the relationmanager. I'm using the same getHeaderWidgets method.
I just checked again: Widgets are parts of Pages and not Relation managers. So you can register widgets for your Edit/View Page but not for the relation manager. You could change the view for a relation manager and add the code for widgets though if you absolutely need it. Check the
list-records.blade.php
for referenceMaybe this is what you’re looking for. https://filamentphp.com/docs/3.x/panels/resources/relation-managers#relation-pages