F
Filament2mo ago
ericmp

How to add description into ImageColumn?

In the table I'm building, I want to show the image, and also a description. How to achieve it?
Solution:
i created a custom field
Jump to solution
5 Replies
Matthew
Matthew2mo ago
Assuming, ->tooltip, ->description either don't work or are not suitable, you could stack two columns to get the same effect: https://filamentphp.com/docs/3.x/tables/layout#allowing-columns-to-stack-on-mobile
ericmp
ericmpOP2mo ago
tooltip does work, yeah. description noup. hmm okay, im gonna try to stack them, lets see nah im not getting it i got it
Solution
ericmp
ericmp2mo ago
i created a custom field
ericmp
ericmpOP2mo ago
extending ImageColumn and doing: use HasDescription; copied the content of the view of image column then copied the description below and avobe from textinput view field é voilà
Matthew
Matthew2mo ago
Nice. Mark as answer so people can find this in the future
Want results from more Discord servers?
Add your server