alacer / cco-dashboard

0 stars 0 forks source link

Add export / print button to Dashboard #13

Open edsar opened 9 years ago

krseibel commented 9 years ago

We only need to export the tables, right? Here's a datatables plugin that will help: https://www.datatables.net/extensions/tabletools/examples. I tried to get it to work, but couldn't, though.

krseibel commented 9 years ago

I'm not sure how to troubleshoot this: I attempted a solution in dashboardTable.js: see lines 13-16. I consistently receive a rather obscure message, and have tried other's solutions (i.e., sourcing in js files in correct order). Any advice?

krseibel commented 9 years ago

Implemented outputting from dataTable; however, because of image in the table, cell outputs a little oddly--work on fixing this. Also, output to Print causes page to look awful--fix this.

krseibel commented 9 years ago

Fixed export to csv and copy; export to PDF is still a bit of a mess, and Print is unformatted still.

krseibel commented 9 years ago

Possible resources for formatting print output: http://iksela.tumblr.com/post/2711548440/customising-datatables-tabletools-print-view

krseibel commented 9 years ago

Fixed export to PDF!

krseibel commented 9 years ago

In Angular version, the labels should reflect metric-specific bin labels (e.g., < 30 Days instead of OK).

krseibel commented 9 years ago

Please add the same feature to the trends table. Thanks!

krseibel commented 9 years ago

The print preview is a mess--the older form that you had without the slider bars looked better than the standard 'print preview' view that I'm getting now.

krseibel commented 9 years ago

The print functionality is still not working: here's what I get when I click on the "Print" button above the table:

screen shot 2015-08-19 at 6 06 25 pm

The sidebar should not be present; the top bar should not be present (it is over-writing the table info), and there's a random message behind the table that should not be there.

Plus, when I go to exit print mode, I return to a screen looking like this:

screen shot 2015-08-19 at 6 06 35 pm

It should not actually change anything on the screen.