© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
12 replies
bernhard

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
Actions
(inside an
ActionGroup
ActionGroup
). I know, that this is something similar to
awcodes/filament-quick-create
awcodes/filament-quick-create
, but I need way more customization options.

I could get the dropdown/
ActionGroup
ActionGroup
already working:

// Service provider register():
FilamentView::registerRenderHook(
    PanelsRenderHook::USER_MENU_BEFORE,
    fn (): string => Blade::render("@livewire('admin.quick-create-menu')"),
);
// Service provider register():
FilamentView::registerRenderHook(
    PanelsRenderHook::USER_MENU_BEFORE,
    fn (): string => Blade::render("@livewire('admin.quick-create-menu')"),
);


<!-- admin/quick-create-menu.blade.php -->
<div class="flex items-center gap-2">
    {{ $quickCreateMenu }}
</div>
<!-- admin/quick-create-menu.blade.php -->
<div class="flex items-center gap-2">
    {{ $quickCreateMenu }}
</div>


// QuickCreateMenu.php
class QuickCreateMenu extends Component implements HasActions
{
    use InteractsWithActions;

    public function render()
    {
        return view('livewire.admin.quick-create-menu', [
            'quickCreateMenu' => ActionGroup::make([
                Action::make("my-resource")
                  ->label("Create my resource")
                  ->url(route(...))
            ])
              ...
        ]);
    }
}
// QuickCreateMenu.php
class QuickCreateMenu extends Component implements HasActions
{
    use InteractsWithActions;

    public function render()
    {
        return view('livewire.admin.quick-create-menu', [
            'quickCreateMenu' => ActionGroup::make([
                Action::make("my-resource")
                  ->label("Create my resource")
                  ->url(route(...))
            ])
              ...
        ]);
    }
}


This is already working. I can click on the
ActionGroup
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:

Action::make("xxx")
      ->requiresConfirmation()
      ->action(fn() => dd(1)),
Action::make("zzz")
    ->schema([
        TextInput::make("test")
    ])
    ->action(fn($data) => dd($data))
Action::make("xxx")
      ->requiresConfirmation()
      ->action(fn() => dd(1)),
Action::make("zzz")
    ->schema([
        TextInput::make("test")
    ])
    ->action(fn($data) => dd($data))


Any ideas how to fix this?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Add table filter to header actions
FilamentFFilament / ❓┊help
2mo ago
Add header Actions to a slideover
FilamentFFilament / ❓┊help
2y ago
customize actions in modal
FilamentFFilament / ❓┊help
2y ago
Modal Actions
FilamentFFilament / ❓┊help
3y ago