Save/export data table content on client side

Here is a link to a working example on another thread: Save plot data as csv