How to Use CopyAction

protected function getActions(): array { return [ CopyAction::make()->icon('heroicon-s-clipboard-list')->copyable(fn () => 'ABCD' ), ]; } I need copy to clipboard, how to impliment this in v2..
4 Replies
Dennis Koch
Dennis Koch15mo ago
Just have a look at the source code of the CopyAction if it's not included in v2?!
MRBUG
MRBUG15mo ago
are you using valet if yes so first try php serve then check there. because in valet copy method not work but in php serve worked for me
Abi
Abi15mo ago
Abishek R Srikaanth (@shakeofabiomen)
If you ever wanted to implement copy to clipboard functionality as an action on your @filament forms, here is a simple way to do it. #laravel #php #filament #Tips
From Abishek R Srikaanth (@shakeofabiomen)
Twitter
Roshan_k
Roshan_kOP15mo ago
thanq

Did you find this page helpful?