Edit view from relationManager
Hello team, quick question.
Is there a simple way to edit the pop up that appears as a preview of some record in RelationManager? Or should I use a custom view?
I tried to use the infoList method inside my RelationManager class, but it gave me an error.
Thanks in advance to anyone who can guide me.
7 Replies
You can use form or infolist or custom view. what error you got?
Sorry i was at my job.
This is mi error.
And this is my code
use Filament\Infolists\Infolist;
use Filament\Infolists\Components\Group;
use Filament\Infolists\Components\Section;
use Filament\Infolists\Components\TextEntry;
class ClassRelationManager extends RelationManager
{
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Section::make()
->schema([
Group::make([
TextEntry::make('title')
->label(''),
]),
]),
]);
}
}
Solution
Remove
static
OMG!! That's fix it!! thank you
last question... is there a way to show the information into new page? not with modal?
Maybe this one https://filamentphp.com/docs/3.x/panels/resources/relation-managers#relation-pages but I am not sure tho
I'll read thank u again!