Add modal actions in panel header
I wanna add a dropdown to the panel header next to the user menu and then use the regular filament
Actions
(inside an ActionGroup
). I know, that this is something similar to awcodes/filament-quick-create
, but I need way more customization options.
I could get the dropdown/ActionGroup
already working:
This is already working. I can click on the ActionGroup
-icon in the header, which opens the dropdown and then click on the "Create my resource" link which opens the Create-Page. So far, so good.
The problem comes with actions with modals. None of these actions are doing anything:
Any ideas how to fix this?9 Replies
did you add
<x-filament-actions::modals />
in the view?Thanks for responding!
I tried this alredy:
Not working
Make sure you are on ^4.0.2 and run artisan filament:assets.
Am on
4.0.3
and command was usedIf the actions aren’t defined on the liverwire component they don’t get auto registered in the action cache
I have this already tried I guess
Property [$quickCreateMenuAction] not found on component: [admin.quick-create-menu]
Ok
Is working. So i guess it doesn't work with ActionGroups
Hmm, sounds like it might be a bug. I would expect groups to work too. 🤔
well i think, it has to do with not having a name. as far as i understand the docs, the name of the action has to be the same as the name of the method (+Action). but a Group has no name