Place a component next to the title.

Is there any way to add a component (customized or not) to the right side of a EditResource title? A TextInput or even a custom component.
No description
Solution:
You may use something called Render Hooks: https://filamentphp.com/docs/3.x/support/render-hooks I haven't used what you're asking for but I think its: PAGE_HEADER_ACTIONS_AFTER. You may play around with the hooks to see which one fits your requirement. ...
Jump to solution
2 Replies
Solution
SoraKeyheart
SoraKeyheart3d ago
You may use something called Render Hooks: https://filamentphp.com/docs/3.x/support/render-hooks I haven't used what you're asking for but I think its: PAGE_HEADER_ACTIONS_AFTER. You may play around with the hooks to see which one fits your requirement. How to use either in AppServiceProvider:
FilamentView::registerRenderHook(
'panels::topbar.start',
fn () => view('topnav.address-book-icon'),
);
FilamentView::registerRenderHook(
'panels::topbar.start',
fn () => view('topnav.address-book-icon'),
);
or in the AdminPanelProvider:
->renderHook( // Settings button
PanelsRenderHook::GLOBAL_SEARCH_START,
fn (): View => view('topnav.platform-settings'), // Custom blade
)
->renderHook( // Settings button
PanelsRenderHook::GLOBAL_SEARCH_START,
fn (): View => view('topnav.platform-settings'), // Custom blade
)
Check this video out as it helps very much with render hooks: https://www.youtube.com/watch?v=xQsHHk4Mu_E
Myster
MysterOP3d ago
I would like to put a badge next to the title in EditResource. I think this will help me, Thank you very much.

Did you find this page helpful?