bezhanSalleh/filament-language-switch

'panels::global-search.after' render hook name not (always) working

Closed this issue ยท 4 comments

@bezhanSalleh

If I leave $renderHookName as set, nothing shows, but if I change it to other render hooks, it displays there.

for example:

panels::topbar.end
image

I think this is beacuse in documentation there is no 'panels::global-search.after', there is 'panels::global-search.end', but that shows language-switch panel only if there is a global search component on the panel and looks like this, with no margin:
image

I suggest maybe using 'panels::user-menu.before'? :|

This hook was added in filament v3. So if you are using v2 use the v1 filament-language-switch.

I faced the same problem,there is a simple style issue with others hooks,
Use this hook it's work perfectly.

FilamentLanguageSwitchPlugin::make()
->renderHookName('panels::user-menu.before'),

@KonradHambuch @ibrahimBougaoua
These render hooks panels::global-search.before & panels::global-search.after were created to address a PR i made to fix the design issue.
So that's how I know; neither of you are on v3 ๐ŸŽค ๐Ÿ––.
given that v3 is 2weeks old, it wasn't documented until now.
filamentphp/filament#7762