Tabulator: Copy element styling to clipboard on copy

Created on 18 Apr 2018  路  7Comments  路  Source: olifolkerd/tabulator

Could I ask you to allow for the format to be copied along with the data?

We are generating table reports for clients and I have fully converted my code to work with your great tabulator, but when I copy it to Clipboard, and try to paste it to Outlook or anywhere else, it doesn't have the complete format and only the cell locations are saved into the clipboard.

Thank you for this project.

Enhancement

All 7 comments

Hey @htfranek

What do you mean by the "complete format" and "cell locations"?

Could you explain the type of output you are after?

A full graphical reprsesntation of the table would not be possible.

At the moment, the layout of all visible columns, and all rows of data will be copied to the clipboard, which particular bit do you feel is missing?

If you are referring to grouped data or column calculations, then this functionality will be coming in a later release, at the moment only actual row data is handled.

If you want to apply format the data as it is copied into the clipboard, then you should look at the Clipboard Accessor

Cheers

Oli :)

Well if you will look at my webpage working copy, you will see that upon selecting the Totals table (scroll down) and copying it with CTRL + C, you will be able to paste it with styling. (trying Outlook). Yet when I copy your Table at the top, it will only insert the data (by cell locations I mean that it remembers the positions, but not the table itself).

Please check how the results look:

TABULATOR:
link

ORIGINAL (pure html):
link

Hey @htfranek

Thanks for the link and the explanation that was very helpful!

The first version of the clipboard functionality is primarily aimed at people copying data to and from other tables and programs like excel and google sheets, it is more of a data transfer thing than anything else.

I see what you are looking for there, that could be rather tricky as bringing the styling information with the table data is handled by the browser, there may be a possibility of achieving this, i will add it to the road map for one of the next couple of releases.

Thanks for the feedback

Cheers

Oli :)

That is great to read. I will be looking forward for when this feature is implemented.

Again thanks for the great work you are doing here. 馃

Kind regards,
Richard

Hey @htfranek

Looking into this further it should be relatively straight forward to copy over the formatting, i will schedule this for the next release.

Cheers

Oli :)

Hey @htfranek

You will be happy to hear that support for this is now available on the 4.0 branch which is being released later this weekend.

Cheers

Oli :)

Excellent news. Thanks for the update :)

Was this page helpful?
0 / 5 - 0 ratings