Copy Clipboard on Button click

2 Answers 206 Views
Button General Discussions
Vishnu
Top achievements
Rank 1
Iron
Veteran
Vishnu asked on 29 Jul 2021, 08:04 AM

Hi Team,

 

Could you please suggest to do Copy Clipboard on Button click in blazor?

 

Thanks,

Vishnu 

2 Answers, 1 is accepted

Sort by
1
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
answered on 01 Aug 2021, 05:13 PM

Here is a step-by-step guide to this very question.

Build a Blazor 'Copy to Clipboard' component ...

0
Marin Bratanov
Telerik team
answered on 29 Jul 2021, 07:08 PM

Hi Vishnu,

To do that, you need JavaScript (you can call that through the JSInterop the framework provides), here is an article I found online that can be a good starting point: https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Button General Discussions
Asked by
Vishnu
Top achievements
Rank 1
Iron
Veteran
Answers by
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Marin Bratanov
Telerik team
Share this question
or