custom page action not opening
I have a custom page for a resource
trying to add an action at the end of the form
adding it to
getHeaderActions
work fine but not as asepreate action
even adding <x-filament-actions::modals />
no effect
not sure what i am missing!
my Page:
view:
Solution:Jump to solution
Heh I had similar issues with custom actions. Super-dumb, but can you rename
Action::make('get-link')
to Action::make('getLink')
?16 Replies
Solution
Heh I had similar issues with custom actions. Super-dumb, but can you rename
Action::make('get-link')
to Action::make('getLink')
?Also unrelated but what is that sidebar with the updates?
WHHHHAT 🤯
thanks for the help haha never thought of that could be the reason
and the sidebar is the devtools in chrome 🙂
on the network tab
Ah ok I thought it was an extension or something
nah 🙂
ive got the same problem, but changing it to snakeCase doesnt help
did you add
<x-filament-actions::modals />
to your component?yes
any errors in the devtool console?
nope
then without code idk 😅
lol
if i name the method "renderAction" it doesnt work
public function renderAction(): Action
{
return Action::make('delete')
->requiresConfirmation()
->action(fn () => $this->post->delete());
}
now we talking haha
the id and the function name has to be the same
make('render')
Thanks so much, this helped for me as well 🫠
Super weird quirk.
This is what I also discover 2 weeks ago ahahaha so I put a note so that I can remember how to name an Action haha