Isama
Isama
FFilament
Created by Patrick Boivin on 9/22/2023 in #❓┊help
Testing infolist actions
i came up with something like this if you add a section you might need to add another ->getChildComponents()[0] after the first one
$livewire = livewire(ViewInviteeInfoList::class, ['record' => $invitee->getRouteKey()]);

$livewire ->instance()
->getInfolist('infolist')
->getComponents()[0]
->getChildComponents()[0] // this is the index of your action in your actions group - if you dont have one you might not need getChildComponents()
->getAction('delete_invitee')
->call();
$livewire = livewire(ViewInviteeInfoList::class, ['record' => $invitee->getRouteKey()]);

$livewire ->instance()
->getInfolist('infolist')
->getComponents()[0]
->getChildComponents()[0] // this is the index of your action in your actions group - if you dont have one you might not need getChildComponents()
->getAction('delete_invitee')
->call();
14 replies