FilamentF
Filament15mo ago
Xavi

Sidebar action modal

Does anyone know if it is possible to add a button on the sidebar to open a modal for the contact form?
Solution
Hi !
Something like this can help you ?
  ->renderHook(PanelsRenderHook::SIDEBAR_NAV_START, fn() => 
  Blade::render('<x-filament::button wire:click="$dispatch(\'open-modal\', { id: \'contact-form-modal\' })">Test</x-filament::button>')
);
Was this page helpful?