Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of how to enable copy from table cell #2765

Open
paddymul opened this issue Sep 24, 2024 · 2 comments
Open

Example of how to enable copy from table cell #2765

paddymul opened this issue Sep 24, 2024 · 2 comments

Comments

@paddymul
Copy link

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
Copy link
Author

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

@texodus
Copy link
Member

texodus commented Sep 26, 2024

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

Screen.Recording.2024-09-25.at.7.53.50.PM.mov

This could be more elegant:

  • You are still limited to existing perspective output types e.g. csv, we can add a truly-single-cell and properly formatted (e.g. significant digits or datetime format) special case for when region selection is a single cell.
  • Ctrl-C is not enabled by default. We could add a handler for this but it may behave quirkily in your web app due to browser focus rules (e.g. I expect this not to work great in Jupyter). Need to do some research.
  • '"Region Select"should be default instead ofRead-Only` maybe? I'm open to ideas about hwo to make selection modes more discoverable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants