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?
5 Replies
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
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
i created a custom field
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à
Nice. Mark as answer so people can find this in the future