Only works for body cells at the moment
what does cmd+c do on a header cell? it makes sense to copy a group of body cells but i don't see an analog for headers.
It copies the text content, just like a body cell would. Our columns aren't just indexes (1, 2, 3 -- A, B, C...), they contain useful text, and folks want the ability to copy
It does get tricky when there is more in the header cell (like a column type editor) but it looks silly when you can grab a basic column title
We definitely need some way to copy column headers. This is often the expected behavior when a user is referencing a table's column name, for example, in their pipeline code.
For our users, this can force users to have to open the same table in a different product to get a copy-able column name.
FWIW, I don't think Cmd + C is discoverable enough alone. Can we select the text when people right click or something as well?
@ethanbond there's already a context menu showing when you right click, and in there you can find the copy action 馃憤
Edit: that's just for body cells now, but same will happen to header cells once we tackle this issue
we could just have it maybe intelligently check for the column name or for the renderColumnHeader().props.name.
Most helpful comment
It copies the text content, just like a body cell would. Our columns aren't just indexes (1, 2, 3 -- A, B, C...), they contain useful text, and folks want the ability to copy