F
Filament2mo ago
Bruno

How to add an Action to the table next to the search?

I need to add an action to my form table but I don't know how
No description
Solution:
in service provider or middleware add ```php FilamentView::registerRenderHook( PanelsRenderHook::BODY_START,...
Jump to solution
4 Replies
Lara Zeus
Lara Zeus2mo ago
you can use the render hook: TablesRenderHook::TOOLBAR_SEARCH_AFTER https://filamentphp.com/docs/3.x/support/render-hooks#table-builder-render-hooks
Bruno
BrunoOP2mo ago
I'm a beginner but how/where can I use this?
Solution
Lara Zeus
Lara Zeus2mo ago
in service provider or middleware add
FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('impersonation-banner'),
);
FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('impersonation-banner'),
);
as it explained here: https://filamentphp.com/docs/3.x/support/render-hooks#registering-render-hooks
Bruno
BrunoOP2mo ago
Thank you
Want results from more Discord servers?
Add your server