F
Filamentβ€’3mo ago
Wannes

Infolist action on custom page

Hi there! I have a custom livewire page with a table. Now I want to have a view action which opens an infolist, but for some reason I don't get any popups. This is my table action:
->actions([
ViewAction::make('view')
->label('Bekijken')
->icon('heroicon-o-eye')
->infolist(function (Infolist $infolist) {
return $infolist
->schema([
TextEntry::make('lineItemable.name')->label('Naam'),
]);
}),
])
->actions([
ViewAction::make('view')
->label('Bekijken')
->icon('heroicon-o-eye')
->infolist(function (Infolist $infolist) {
return $infolist
->schema([
TextEntry::make('lineItemable.name')->label('Naam'),
]);
}),
])
I use the
InteractsWithInfolists
InteractsWithInfolists
trait and have the
HasInfolists
HasInfolists
interface. This is my view:
<div>
{{ $this->table }}

<x-filament-actions::modals />

</div>
<div>
{{ $this->table }}

<x-filament-actions::modals />

</div>
Is there something I am missing?
9 Replies
Wannes
Wannesβ€’3mo ago
Seems like my modals are just not working at all
LeandroFerreira
LeandroFerreiraβ€’3mo ago
you don't need <x-filament-actions::modals /> Check the setup again: https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component#adding-the-table And do this:
->infolist([
TextEntry::make('name')
])
->infolist([
TextEntry::make('name')
])
Wannes
Wannesβ€’3mo ago
Its still not popping up unfortantely
LeandroFerreira
LeandroFerreiraβ€’3mo ago
console errors?
Wannes
Wannesβ€’3mo ago
No, empty console
Wannes
Wannesβ€’3mo ago
Yes, but it seems like my entire actions ain't working. I tried doing this, and still nothing is happening:
Action::make('test')
->action(function () {
dd("hallo");
})
Action::make('test')
->action(function () {
dd("hallo");
})
A bulkaction on the other hand seems to work fine
LeandroFerreira
LeandroFerreiraβ€’3mo ago
this was supposed to work if you have a minimal repo on Github, I can take a look after..
Wannes
Wannesβ€’3mo ago
Its a codebase with 2000 commits, so thats a bit tricky πŸ˜… but I just fixed it I was modifying the query a bit to much and accidently used a wrong id so it didnt match anymore with the record model so he couldnt find a model πŸ˜