F
Filament13mo ago
ArnoNym

Filament V3 Table heading in one row with the filters

Hello I try to set a heading to a table but it is shown above the table and not at the free space in the same row as the filters are: Is it possible to set a heading to this row? I am setting the heading like this: ->heading('Hello World') Thanks in advance
No description
3 Replies
ArnoNym
ArnoNymOP13mo ago
Bump. noone knows how to do this?
Lara Zeus
Lara Zeus13mo ago
I dont think so this area for header actions
mrvn
mrvn8mo ago
I am here for the same issue. The usd approach seems like a waste of space and almost unestically most of the times, especially using minimal theme. Would be nice to at have the option to chose. Actually I just found a solution as you can just use a render hook:
FilamentView::registerRenderHook(
TablesRenderHook::TOOLBAR_START,
fn () => '<h3 class="text-base font-semibold leading-6 text-gray-950 dark:text-white">Heading</h3>',
// scopes: \App\Filament\Resources\UserResource\Pages\EditUser::class,
);
FilamentView::registerRenderHook(
TablesRenderHook::TOOLBAR_START,
fn () => '<h3 class="text-base font-semibold leading-6 text-gray-950 dark:text-white">Heading</h3>',
// scopes: \App\Filament\Resources\UserResource\Pages\EditUser::class,
);
Specifying the scope gives you even more flexibility @Lara Zeus Do you might have an idea how this could be implemented on an automated basis using Table::configureUsing, by using a Trait or at least extending the Table BaseClass?
Want results from more Discord servers?
Add your server