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?
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
You can use
https://filamentphp.com/docs/3.x/tables/columns/text#custom-formatting
The
formatStateUsing()https://filamentphp.com/docs/3.x/tables/columns/text#custom-formatting
The
TextColumn also supports url()