finos / perspective

A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
https://perspective.finos.org/
Apache License 2.0
8.48k stars 1.18k forks source link

Example of how to enable copy from table cell #2765

Open paddymul opened 1 month ago

paddymul commented 1 month ago

Feature Request

I want to be able to copy cell values from the table to the clipboard.

Description of Problem:

I want to be able to use the perspective table like any other table, including copying values out of a table. This is somewhat possible with the current implementation if you make cells edittable.

Potential Solutions:

Context menu, or click cell to highlight, then Ctrl-C copies the value to the clipboard.

paddymul commented 1 month ago

Surprisingly this is an enterprise only feature for ag-grid. https://www.ag-grid.com/javascript-data-grid/clipboard/

texodus commented 1 month ago

You can use the "Select Region" mode to select single cells (or regions obv), which are then copyable in the "Copy" menu:

https://github.com/user-attachments/assets/8f850a82-1848-4971-b844-39fd8bb74c56

This could be more elegant: