Button->Action to copy text?
protected function getActions(): array
{
return [
ButtonAction::make('copyDetails')
->label('Copy Details')
->color('primary')
->action('copyDetailsToClipboard')
];
}
Is it possible to make this button copy text (obtained from the service or the model) to the user's clipboard? If yes, please kindly point me π
Thanks!!
2 Replies
Solution
Man, you are awesome π !!