How to copy table data to a clipboard

Hi ,

I’m new to vaadin and would like to know how to implement the below use case.

  1. I have a table which displays the data and a button “copy to clipboard”.

  2. when I click the button “copy to clipboard” the data inside the table should be copied.

Please advice !!