Table Column - end of string
Hi
I have a table, in which will be a sharepoint link, now that link - as you can imagine - will get quite long, so we would like a way to only show the last part of that url, or some different text. We have the copyable() method on the column, which is currently copying the sharepoint link fine.
Is this something we can do, or could we make it so that just the word "link" shows rather than the actual column value?
Solution:Jump to solution
You can use
formatStateUsing()
https://filamentphp.com/docs/3.x/tables/columns/text#custom-formatting
The TextColumn
also supports url()
...2 Replies
Solution
You can use
formatStateUsing()
https://filamentphp.com/docs/3.x/tables/columns/text#custom-formatting
The TextColumn
also supports url()
Ah cool, thanks @Leandro Ferreira I thoguth formatState would be like some CSS that gets applied to it, that's got the job