Add a letter navigation bar on list page
I'm looking to add some filtering on the first letter of a record's title. I can add a dropdown to the filters but I prefer to have it always available above the table as A-Z buttons. What would be a good approach? Or where should I look for inspiration? I'm just looking for some pointers in the right direction π€
16 Replies
Checkt out the render hooks
resource.pages.list-records.table.start
https://filamentphp.com/docs/2.x/admin/appearance#render-hooksYeah, sorry, I wasn't clear. I know about the render hooks, the question is really about the filtering functionality, not how to get the actual bar above the table. But I appreciate the reply! π
Write a custom filter and set the filter to "always show"?
Hm could it be that simple?
the filters can be shown at pageloage
I'll look into that, thanks!
instead of a dropdown which opens after click
Filament
Filters - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
Not sure what the option 'always show' would be. There's no mention of such an option in the docs (afaics) π§
There IS an option to show filters above the content, but that applies to all filters (oh that's what you posted π
)
Found something that should be exactly what your searching for: https://laraveldaily.com/post/filament-click-widget-auto-update-table-filter
Laravel Daily
Filament: Click on Widget - Auto-Update Table Filter
update table filter
Awesome, thanks! πͺ
No prob
Maybe mark the thread als solved π
We're not there yet π
But will do once I got it working!
Aaaand maybe build a package out of it? π
https://github.com/filamentphp/plugin-skeleton
GitHub
GitHub - filamentphp/plugin-skeleton: A package skeleton for develo...
A package skeleton for developing Filament plugins. - GitHub - filamentphp/plugin-skeleton: A package skeleton for developing Filament plugins.
Noob question but how do I mark it as solved? π
The green check?