Customizing the tenant menu
The docs say the tenant menu is fully customizable. How can I deal with the dropdown if it has too many items / tenants? Can I make it searchable etc.?
Thank you!
4 Replies
@flanger.dev I see this question has been open for a while, have you found a solution for this problem? i'm running into the same thing right now
You best bet is going to be using css to set a max height on the floating panel and making it scrollable.
Hello, its been a while, but I have a workaround @Florian Langer and @Jeroen Mager:
Make a livewire component
In the livewire view, add something like this:
You can edit your dropdown following this: https://filamentphp.com/docs/3.x/support/blade-components/dropdown
and add any blade elements you need.
Then, you have to add in
AppServiceProvider.php
:
Finally, hide the default tenant menu item by adding this in AdminPanelProvider
or your panel provider:
You will get something like this. As you can see, I also added a conditional icon for the tenants.