mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

print is not customizable

Open Cherviakov opened this issue 4 years ago • 3 comments

Expected Behavior

Handler should exists to pass your own print button function Also print of table should show something more like a table, currently it converts each row into table of two coluimns: column names and row values.

Current Behavior

No handler to customize print Print converts each row into table of two coluimns: column names and row values.

Your Environment

Tech Version
Material-UI latest
MUI-datatables latest
React latest
browser chrome
node 15.0.1
os linux ubuntu 16.04

Cherviakov avatar Feb 18 '21 07:02 Cherviakov

Does print mean the print in the toolbar? 3.7.5 version, print icon can be customize.

ref : https://github.com/gregnb/mui-datatables/blob/master/examples/customize-toolbar-icons/index.js

Do you want to change the behavior?

wdh2100 avatar Feb 19 '21 12:02 wdh2100

I want to customize not just icon but what handler does. Also default print of mui-datatable looks really strange.

ghost avatar Feb 19 '21 12:02 ghost

Same here, looking for a way to customize print function just like onDownload.

avianheit07 avatar Jan 14 '22 04:01 avianheit07

I not working on project using it anymore, will close it, please re-open if it relevant for anyone else.

ghost avatar Jun 12 '23 12:06 ghost

In case anyone stumbles across this like I did: my solution was to disable the table's built-in print and use the customToolbar option to append a print button that uses window.print().

ryanpf avatar Aug 14 '23 15:08 ryanpf