F
Filamentβ€’15mo ago
Kerchack

Composed table column

Is there a way to get this kind of column? I cannot find the way
No description
12 Replies
Kerchack
KerchackOPβ€’15mo ago
What I need is avatar image on left and then, name on top + user role at bottom
Kerchack
KerchackOPβ€’15mo ago
yes but how to do that on code?
Gush
Gushβ€’15mo ago
use Filament\Support\Enums\FontWeight;
use Filament\Tables\Columns\Layout\Split;
use Filament\Tables\Columns\TextColumn;

Split::make([
ImageColumn::make('avatar')
->circular(),
TextColumn::make('name')
->weight(FontWeight::Bold)
->searchable()
->sortable(),
TextColumn::make('email'),
])
use Filament\Support\Enums\FontWeight;
use Filament\Tables\Columns\Layout\Split;
use Filament\Tables\Columns\TextColumn;

Split::make([
ImageColumn::make('avatar')
->circular(),
TextColumn::make('name')
->weight(FontWeight::Bold)
->searchable()
->sortable(),
TextColumn::make('email'),
])
Kerchack
KerchackOPβ€’15mo ago
This is my code
No description
Kerchack
KerchackOPβ€’15mo ago
And this what I get
No description
Kerchack
KerchackOPβ€’15mo ago
any suggestions of what I'm doing wrong?
GDG
GDGβ€’15mo ago
You need to use a combination of Split and Stack to achieve your desired results. https://filamentphp.com/docs/3.x/infolists/layout/split#overview https://filamentphp.com/docs/3.x/tables/layout#stacking-within-a-split Basically, something like this but adjusting spans etc
->Split
->Avatar
->Stack
->Name
->Email
->Split
->Avatar
->Stack
->Name
->Email
Kerchack
KerchackOPβ€’15mo ago
Yeah, I've tried this
No description
Kerchack
KerchackOPβ€’15mo ago
And have this pretty close
No description
Kerchack
KerchackOPβ€’15mo ago
Now I need to set first column with πŸ™ forgot columnSpan...
GDG
GDGβ€’15mo ago
Hopefully that worked for you. πŸ‘
Want results from more Discord servers?
Add your server