ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

how to export colors to pdfs and csvs

Open gindij opened this issue 11 years ago • 3 comments

Hi,

In my grid I am coloring the contents of certain cells and I want those colors to carry over when I export to PDF or CSV. Can I do this? If so, how?

Thanks in advance.

gindij avatar Jun 03 '15 18:06 gindij

There's no automatic way to do it - the export goes back to the data to determine what to display. But there is a formatting callback of some sort (I can't recall the name) that you can use to apply formats to any cell. You would need to reimplement your logic within that callback.

PaulL1 avatar Jun 03 '15 18:06 PaulL1

Great thanks!

gindij avatar Jun 03 '15 20:06 gindij

The formatting callback is exporterFieldCallback?

Not certain how would be able to export color yet with this function.

bjaraujo avatar Oct 30 '15 09:10 bjaraujo