F
Filamentβ€’8mo 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
WannesOPβ€’8mo ago
Seems like my modals are just not working at all
LeandroFerreira
LeandroFerreiraβ€’8mo 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
WannesOPβ€’8mo ago
Its still not popping up unfortantely
LeandroFerreira
LeandroFerreiraβ€’8mo ago
console errors?
Wannes
WannesOPβ€’8mo ago
No, empty console
Wannes
WannesOPβ€’8mo 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β€’8mo ago
this was supposed to work if you have a minimal repo on Github, I can take a look after..
Wannes
WannesOPβ€’8mo 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 πŸ˜…
Want results from more Discord servers?
Add your server