F
Filament16mo ago
Mis Tsu

How to copy the column's value when click?

How to add a button to copy the Token column text ,other way copy text when I click on Token column?
No description
3 Replies
toeknee
toeknee16mo ago
->copyable() So when they click the column it copies
toeknee
toeknee16mo ago
https://filamentphp.com/docs/3.x/tables/columns/color#allowing-the-color-to-be-copied-to-the-clipboard You could formatStateUsing(fn($state) => $state . ' COPY') to add a copy word. Or prefix/postfix an icon
Mis Tsu
Mis TsuOP16mo ago
Thank you very much!

Did you find this page helpful?