F
Filamentβ€’14mo ago
KA

Two columns in one cell

Wanted to show ImageColumn and InputColumn side by side like documentation. Any idea how to achieve it?
No description
Solution:
in your first Split element(image) add the following attribute:
->grow(false)
->grow(false)
then in your "name" column you can use ...
Jump to solution
6 Replies
Dennis Koch
Dennis Kochβ€’14mo ago
Using a Split/Stack. We also should have that example in the demo which is open source too
KA
KAOPβ€’14mo ago
tried Split and got following result:
No description
KA
KAOPβ€’14mo ago
tried Stack and got following result:
No description
Solution
tesse05
tesse05β€’14mo ago
in your first Split element(image) add the following attribute:
->grow(false)
->grow(false)
then in your "name" column you can use
->description(fn ($record): ?string => $record->email)
->description(fn ($record): ?string => $record->email)
to show the email below the name πŸ™‚
KA
KAOPβ€’14mo ago
->grow(false) works πŸ™‚ thanks
KA
KAOPβ€’14mo ago
final result:
No description

Did you find this page helpful?