opening modal on action button programmatically
https://filamentphp.com/docs/2.x/tables/actions#modals
Hi, is there any method to open to the button modal on page load/mounted
Filament
Actions - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
5 Replies
$this->mountAction('newPromo')
on mounted should do the trick tooHi, pardon the confusion the action is in the getTableHeaderActions(), and when i try to use
I get this error
https://flareapp.io/share/VmeMERjm
Flare
Typed property App\Filament\Resources\Events\EventsResource\Pages\ListEventPromo::$cachedTableActions must not be accessed before initialization - The error occurred at http://localhost:8000/admin/events/55/promos/10
Solution
yeah, i'm sorry, coppied the wrong thing from my codebase, use Leandro's answer