Conditional widget based on RelationManager

I have a resource with two relationmanager:
public static function getRelations(): array { return [ RelationManagers\ProposalRelationManager::class, RelationManagers\PartecipantsRelationManager::class, ]; }

The problem is that I want to show different widgets, based on different table when I switch tab from one relation to the other.
As showed above I have Proposal a Partecipant resource with different widgets

Inside the edit page I have:
protected function getHeaderWidgets(): array { return [ ProposalResource\Widgets\ProposalOverview::class, ]; }
but of course it's ok when the I hit the "proposal Tab", but when I'm clicking the Partecipant tab, I would like to load another widget.

Is this possible?
Thank you!
Was this page helpful?