F
Filament4mo 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
Matthew4mo 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
ericmpOP4mo 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
ericmp4mo ago
i created a custom field
ericmp
ericmpOP4mo 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
Matthew4mo ago
Nice. Mark as answer so people can find this in the future

Did you find this page helpful?